EOF(3)                     Linux Programmer's Manual                    EOF(3)



NAME
       EOF - end of file/error indicator

SYNOPSIS
       #include <stdio.h>

       #define EOF (-1)      /* or otherwise */

DESCRIPTION
       EOF is a negative int constant returned by various C functions to indi-
       cate either end of file or error.

NOTES
       Although EOF is traditionally defined to be -1, this  is  not  actually
       guaranteed either by standard C or POSIX.

CONFORMING TO
       ISO/IEC 9899

SEE ALSO
       ferror(3), feof(3)



                                  2005-02-03                            EOF(3)