The <stdio.h> include file defines constants, macros, and types, and declares stream input and output functions. The stream I/O functions are:
_C_Get_Ssn_Handle clearerr fclose fdopen2 feof ferror fflush fgetc fgetpos fgets fgetwc 1 fgetws 1 fileno2 fopen |
fprintf fputc _fputchar fputs fputwc1 fputws1 fread freopen fscanf fseek fsetpos ftell fwide 1 fwprintf 1 |
fwrite fwscanf 1 getc getchar gets getwc 1 getwchar 1 perror printf putc putchar puts putwc 1 putwchar 1 |
remove rename rewind scanf setbuf setvbuf snprintf sprintf sscanf tmpfile tmpnam ungetc ungetwc 1 vfprintf |
vfscanf vfwprintf 1 vfwscanf1 vprintf vscanf vsscanf vsnprintf vsprintf vwprintf 1 vwscanf1 wfopen2 wprintf 1 wscanf 1 |
Note:
1 These functions are not available
when either LOCALETYPE(*CLD) or SYSIFCOPT(*NOIFSIO) is specified on
the compilation command. Note:
2 These functions are available when SYSIFCOPT(*IFSIO)
is specified on the compilation command. |
The <stdio.h> include file also defines the macros that are listed below. You can use these constants in your programs, but you should not alter their values.
The FILE structure type is defined in <stdio.h>. Stream I/O functions use a pointer to the FILE type to get access to a given stream. The system uses the information in the FILE structure to maintain the stream.
When integrated file system is enabled with a compilation parameter SYSIFCOPT(*IFSIO), ifs.h is included into <stdio.h>.
The C standard streams stdin, stdout, and stderr are also defined in <stdio.h>.
The macros SEEK_CUR, SEEK_END, and SEEK_SET expand to integral constant expressions and can be used as the third argument to fseek().
The macros _IOFBF, _IOLBF, and _IONBF expand to integral constant expressions with distinct values suitable for use as the third argument to the setvbuf function.
The type fpos_t is defined in <stdio.h> for use with fgetpos() and fsetpos().
See <stddef.h> for more information about NULL.