~ Could some one explain what EOF is and how I would use it to end loops 
~ 

EOF is a defined value (default is -1 defined in stdio.h:
#ifndef EOF
#define EOF (-1)
#endif
)
which is returned by various I/O functions
(getc/fgetc....) when they hit 'end-of-file'. To be quick the common usage
is: while((c=getc(stdin))!=EOF) putc(c,stdout);


--
[EMAIL PROTECTED]           http://www.kalug.lug.net

Reply via email to