发新话题
打印

如何编程实现bin文件转化为iso文件

如何编程实现bin文件转化为iso文件

  Bin2ISO, here is the source code:

/****************************************************


#include <stdio.h>

/* G L O B A L D E F I N E S */
#define byte unsigned char
#define SIZERAW 2352
#define SIZEISO 2048

FILE *INPUT, *OUTPUT;

/* ///////////////////////////////////// */

int main( argc, argv )

int argc;
char *argv[];
{
byte buf[SIZERAW 100];

/* Tell them what I am. */
fprintf (stderr, "raw2iso - Converts RAW format files to ISO format - V1.0 ");

/* Input -- process -- Output */
if ( argc != 3 ) return 1;
INPUT = fopen( argv[1], "rb" );
OUTPUT = fopen( argv[2], "wb" );
memset(
相关主题

TOP

发新话题