STDIO Overview STDIO STDIO is an abbreviation for standard input and output. It refers to a set of standard library functions that accompany all C compilers and that govern input and output with peripheral devices. COHERENT includes the following STDIO routines: clearerr()Present status stream fclose() Close a file stream fdopen() Open a file stream for I/O feof() Discover a file stream's status ferror() Discover a file stream's status fflush() Flush an output buffer fgetc() Get a character fgets() Get a string fgetw() Get a word fileno() Get a file descriptor fopen() Open a file stream fprintf() Format and print to a file stream fputc() Output a character fputs() Output a string fputw() Output a word fread() Read a file stream freopen() Open a file stream fscanf() Format and read from a file stream fseek() Seek in a file stream ftell() Return file pointer position fwrite() Write to a file stream getc() Get a character getchar() Get a character gets() Get a string getw() Get a word pclose() Close a pipe popen() Open a pipe printf() Print a formatted string putc() Output a character putchar() Output a character puts() Output a string putw() Output a word rewind() Reset a file pointer scanf() Format and input from standard input setbuf() Set alternative file-stream buffers sprintf() Format and print to a string sscanf() Format and read from a string ungetc() Return character to file stream STDIO routines are buffered by default. ***** See Also ***** buffer, FILE, Libraries, stdio.h, stream COHERENT Lexicon Page 1