2 feof - determine if end-of-file flag is set
8 fd file stream open for reading
13 The function feof(fd) returns 1 or 0 according as the end-of-file flag
16 The end-of-file flag for the stream fd is set if reading at the
17 end-of-file position is attempted. The flag is cleared by
18 positioning operations (fseek, rewind, fsetpos) and by freopen.
21 ; fd1 = fopen("/tmp/newfile", "w")
22 ; fputs(fd1, "Chongo was here\n")
24 ; fd2 = fopen("/tmp/newfile", "r")
42 errno, fclose, feof, ferror, fflush, fgetc, fgetline, fgets, files, fopen,
43 fprintf, fputc, fputs, fseek, fsize, ftell, isfile, printf, prompt
46 ## Copyright (C) 1999 Landon Curt Noll
48 ## Calc is open software; you can redistribute it and/or modify it under
49 ## the terms of the version 2.1 of the GNU Lesser General Public License
50 ## as published by the Free Software Foundation.
52 ## Calc is distributed in the hope that it will be useful, but WITHOUT
53 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
54 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
55 ## Public License for more details.
57 ## A copy of version 2.1 of the GNU Lesser General Public License is
58 ## distributed with calc under the filename COPYING-LGPL. You should have
59 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
60 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
62 ## @(#) $Revision: 30.1 $
63 ## @(#) $Id: feof,v 30.1 2007/03/16 11:10:42 chongo Exp $
64 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/feof,v $
66 ## Under source code control: 1994/10/27 03:04:17
67 ## File existed as early as: 1994
69 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
70 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/