/* mkhdr.c -- real -.L file and generate -.I file This may be used, for example, to generate EEPROM.I This program scans each line in the -.L file for the string "*i*" which will be in a comment on the entry point of each subroutine whose name should go into the -.I file Example: entry_point: push psw ; *i* will appear in the -.L file as the output for this line will be entry_point equ 04567h */ #include #include void main(int argc, char **argv) { FILE *fin,*fout; char s[84]; if(argc>1) printf("%s\n",argv[1]); /* input file name -- example EEPROM */ }