I just started "The ANSI C Programming Language" and some of they use EOF but dont tell you how to use it after you build your program...
heres the source if it makes a difference:
Code:/* Count characters in input ver 1 */ #include <stdio.h> int main() { long c; c = 0; while (getchar() != EOF) ++c; printf ("%ld\n", c); return 0; }