Mail Archives: djgpp/1996/09/11/19:29:06
John Moon <moon2 AT ccfsun DOT nrl DOT navy DOT mil> wrote:
>Let's try this again,
>
>This may be a dumb question, but
>when I try to read a ^C char in binary from a
>file I get an EOF condition, no matter if I try
>to read further into the file or not. Is this a
>perversity of the djgpp stdlib? If so, what is the
>standard work-around? I have tried getc, fgetc,
>fscanf, and fread, and they all do the same thing.
>Apparently, the 255 (EOF) char does the same thing so
>even if I get the file size and fseek past the
>offending character I don't know whether it was a
>^C or EOF.
>
>I am using go32 v 1.12.maint3
>
>Thanks for dispelling my ignorance,
>
>John Moon
>
>#define MAX 300
>
>main(argc,argv)
> int argc;
> char *argv[];
>{
>
are you sure you wrote this program and it compiled?
sinan.
- Raw text -