in this situation,
1. you could find index 0 to size.
2. so, getchar must know about start of file point in C language.
3. we use better a type of structures for analyzer.
so, the function lootin is like the below.
char getchar( FILE fp, int *file_index, int file_end); char getchar( FILE fp, int *file_index, int file_end) { } *3) typedef struct { FILE *fp; FILE *fp_start; int file_index; int file_end; } FILE_ANALYZER; // return: // 0 not ascii // a - Z char getchar( FILE_ANALYZER *fa) { return 0; }