O'Reilly logo

C Primer Plus, Fourth Edition by Stephen Prata

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Standard I/O Library: stdio.h

The ANSI C standard library includes several standard I/O functions associated with streams and the stdio.h file. Table RS.V.30 presents the ANSI prototypes for these functions along with a brief explanation of what they do. (Many are described more fully in Chapter 13, “File Input/Output.”) The header file also defines the FILE type, the values EOF and NULL, and the standard I/O streams stdin, stdout, and stderr, along with several constants used by the functions in this library.

Table RS.V.30. ANSI C Standard I/O Functions
Prototype Description
void clearerr(FILE *); Clears end-of-file and error indicators.
int fclose(FILE *); Closes the indicated file.
int feof(FILE *); Tests for end of file.
int ferror(FILE *); ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required