d2asm.c
498 Bytes
#include <stdio.h>
main(argc,argv)
int argc;
char *argv[];
{
FILE *fp1,*fp2,*fp3,*fopen();
if (argc !=4) {
printf("d2asm <input_file> <output_file> <output_list_file> \n");
exit(1);
} else
if ((fp1= fopen(*++argv, "r")) == NULL)
{
printf("can't open %s\n", *argv);
}
else
{
fp2 = fopen(*++argv,"w");
fp3 = fopen(*++argv,"w");
pass(fp1,fp2,fp3);
fseek(fp1,0L,0);
printf("Output file ** %s ** generated \n",*argv);
}
fclose(fp1);
fclose(fp2);
fclose(fp3);
}