| Example | Relevant Functions |
5.1 | Copy standard input to standard output (using getc/putc) |
getc,
putc,
ferror
|
5.2 | Copy standard input to standard output (using fgets/fputs) |
fgets,
fputs,
ferror
|
5.3 | Print buffering type
(none/line/full) + buffer sizes for stdin/stdout/stderr/file |
getc,
getchar,
fopen,
fputs,
|
5.4 | Create temporary files |
tmpnam,
tmpfile,
fgets,
rewind,
fputs
|
5.5 | Usage of tempnam (not tmpnam) for temporary file names |
tempnam
|