3 fgetc, getc, getchar, fputc, putc, putchar, ungetc, fgets, gets, fputs, puts, fread, fwrite \- Stdio input and output
20 int fputc(int c, FILE *f)
23 int putc(int c, FILE *f)
29 int ungetc(int c, FILE *f)
32 char *fgets(char *s, int n, FILE *f)
38 int fputs(char *s, FILE *f)
44 long fread(void *ptr, long itemsize, long nitems, FILE *stream)
47 long fwrite(void *ptr, long itemsize, long nitems, FILE *stream)
49 The functions described here work on open Stdio streams (see
60 If the stream is at end-of-file, the end-of-file indicator for the
65 If a read error occurs, the error indicator for the stream is set and
72 except that it is implemented as a macro.
76 except that it always reads from
82 back onto the input stream
84 The pushed-back character will be returned by subsequent reads in
85 the reverse order of their pushing.
86 A successful intervening
93 discards any pushed-back characters for
95 One character of push-back is guaranteed.
97 returns the character pushed back (converted to
102 if the operation fails.
105 clears the end-of-file indicator for the stream.
106 The file position indicator for the stream after reading or discarding
107 all pushed-back characters is the same as it was before the
108 characters were pushed back.
118 at the position indicated by the position indicator for the stream
119 and advances the indicator appropriately.
120 If the file cannot support positioning requests, or if the stream was
121 opened with append mode, the character is appended to the output stream.
123 returns the character written or
125 if there was a write error.
129 but is implemented as a macro.
133 except that it always writes to
136 All other input takes place as if characters were read by successive
139 and all other output takes place as if characters were written by
144 reads up to and including the next newline, but not past end-of-file
147 characters, from stream
151 A null character is written immediately after the last character read
152 into the array (if any characters are read at all).
156 if successful, otherwise a null pointer.
160 except that it always reads from
162 and it discards the terminating newline, if any.
164 does not check for overflow of the receiving array, so its use is deprecated.
173 if a write error occurred, otherwise a nonnegative value.
174 The terminating null character is not written.
176 is the same, writing to
180 reads from the named input
188 into a block beginning at
190 It returns the number of items actually read.
193 appends to the named output
201 from a block beginning at
203 It returns the number of items actually written.
211 Stdio does not handle
213 or runes; use Bio instead.