2 #define YY_USER_INIT open_input_file()
6 void open_input_file(void)
8 char *file_name,buffer[1024];
13 printf("Input file: ");
14 file_name = fgets(buffer,1024,stdin);
16 file_name[strlen(file_name)-1] = '\0';
17 yyin = fopen(file_name,"r");
19 printf("Unable to open \"%s\"\n",file_name);