Header: stdio.h Purpose: Defines ANSI C input and output utilities. File: stdio.h Author: K.G. Begeman Use: #include "stdio.h" Defines: BUFSIZ I/O buffer size clearerr(FILE *stream) Clears EOF and error indicators EOF End Of File indication code feof(FILE *stream) EOF indicator for stream ferror(FILE *stream) Error indicator for stream FILE File pointer structure FILENAME_MAX Maximum length of file name fpos_t Used by fgetpos and fsetpos getc(FILE *stream) As fgetc, but a macro getchar(void) getc(stdin) L_tmpnam Min. length of temp. file name FOPEN_MAX Maximum number of files open per process putc(int c, FILE *stream) As fputc, but macro putchar(int c) putc(c,stdout) SEEK_SET Position from begin of file SEEK_CUR Position from current file position SEEK_END Position from end of file stdin Standard input stdout Standard output stderr Standard error TMP_MAX Max. number of unique temp. file names _IOFBF Sets full buffering _IOLBF Sets line buffering _IONBF Sets no buffering Declares: char *fgets(char *s, int n, FILE *stream); char *gets(char *s); char *tmpnam(char s[L_tmpnam]); FILE *fopen(const char *filename, const char *mode); FILE *freopen(const char *filename, const char *mode, FILE *stream); FILE *tmpfile(void); int fclose(FILE *stream); int fflush(FILE *stream); int fgetc(FILE *stream); int fgetpos(FILE *stream, fpos_t *ptr); int fprintf(FILE *stream, const char *format, ...); int fputc(int c, FILE *stream); int fputs(const char *s, FILE *stream); int fscanf(FILE *stream, const char *format, ...); int fseek(FILE *stream, long offset, int origin); int fsetpos(FILE *stream, const fpos_t *ptr); int printf(const char *format, ...); int puts(const char *s); int remove(const char *filename); int rename(const char *oldname, const char *newname); int scanf(const char *format, ...); int setvbuf(FILE *stream, char *buf, int mode, size_t size); int sprintf(char *s, const char *format, ...); int sscanf(char *s, const char *format, ...); int ungetc(int c, FILE *stream); int vfprintf(FILE *stream, const char *format, va_list arg); int vprintf(const char *format, va_list arg ); int vsprintf(char *s, const char*format, va_list arg); long ftell(FILE *stream); size_t fread(void *ptr, size_t size, size_t nobj, FILE *stream); size_t fwrite(void *ptr, size_t size, size_t nobj, FILE *stream); void perror(const char *s); void rewind(FILE *stream); void setbuf(FILE *stream, char *buf); Warning: System dependent! At the moment implemented for ALLIANT, CONVEX, DEC ALPHA, DEC ULTRIX, HP9000, SUN and DEC VMS. Updates: Apr 8, 1990: KGB, Document created. Aug 12, 2009: JPT, Linux now includes from system.