There are two type declarations in this header file. Refer to the following table:
| Type Definition | Description |
|---|---|
| FILE | Defines a type for a file descriptor. |
| fpos_t | A type to hold the position in the file as needed by fgetpos() and fsetpos(). |
The following table lists the constants defined in stdio.h.
| Constant | Description |
|---|---|
| BUFSIZ | Buffer size for setbuf(). |
| EOF | Negative constant to indicate end-of-file. |
| FILENAME_MAX | Maximum length of a filename. |
| FOPEN_MAX | Maximum number of open files. |
| _IOFBF | To set full buffering in setvbuf(). |
| _IOLBF | To set line buffering in setvbuf(). |
| _IONBF | To switch off buffering in setvbuf(). |
| SEEK_CUR | fseek() positions relative from current position. |
| SEEK_END | fseek() positions from the end of the file.L |
| SEEK_SET | fseek() positions from the start of the file. |
| TMP_MAX | Maximum number of unique filenames tmpnam() can generate. |
In addition, there are three variables for the standard I/O streams:
extern FILE * stderr, *stdin, *stdout;