1 .\" @(#)getc.3s 6.2 (Berkeley) 5/14/86
3 .TH GETC 3 "May 14, 1986"
6 getc, getchar, fgetc, getw \- get character or word from stream
12 int getc(FILE *\fIstream\fP)
14 int fgetc(FILE *\fIstream\fP)
15 int getw(FILE *\fIstream\fP)
20 returns the next character from the named input
30 but is a genuine function, not a macro;
31 it may be used to save object text.
38 It returns the constant
41 upon end of file or error, but since that is a good
46 should be used to check the success of
49 assumes no special alignment in the file.
59 These functions return the integer constant
62 at end of file, upon read error,
63 or if an attempt is made to read a file not opened by
65 The end-of-file condition is remembered,
67 and all subsequent attempts to read will return
69 until the condition is cleared with
72 Because it is implemented as a macro,
76 argument with side effects incorrectly.
79 doesn't work sensibly.