INTRO(3S) COMMAND REFERENCE INTRO(3S) NAME intro - standard buffered input/output package DESCRIPTION The functions described in section 3S constitute a user- level buffering scheme. The in-line macros getc and putc(3s) handle characters quickly. The higher level routines gets, fgets, scanf, fscanf, fread, puts, fputs, printf, fprintf, and fwrite all use getc and putc; they can be freely intermixed. These functions constitute the standard I/O package; see stdio(3s) . These functions are in the C library. Declarations for these functions may be obtained from the include file <stdio.h> . Description of Functions Name Function clearerr.3s stream status inquiry fclose.3s close a stream fdopen.3s open a stream feof.3s stream status inquiry ferror.3s stream status inquiry fflush.3s flush a stream fgetc.3s get character from stream fgets.3s get string from stream fileno.3s stream status inquiry fopen.3s open a stream fprintf.3s formatted output conversion fputc.3s put character on stream fputs.3s put string on stream fread.3s buffered binary input/output freopen.3s open a stream fscanf.3s formatted input conversion fseek.3s reposition a stream ftell.3s reposition a stream fwrite.3s buffered binary input/output getc.3s get character from stream getchar.3s get character from stream gets.3s get string from stream getw.3s get word from stream pclose.3s initiate I/O to/from a process popen.3s initiate I/O to/form a process printf.3s formatted output conversion putc.3s put character on stream putchar.3s put character on stream puts.3s put string on stream putw.3s put word on stream rewind.3s reposition a stream scanf.3s formatted input conversion setbuf.3s assign buffering to stream Printed 3/13/89 1
INTRO(3S) COMMAND REFERENCE INTRO(3S) setbuffer.3s assign buffering to stream setlinebuf.3s assign buffering to stream sprintf.3s formatted output conversion sscanf.3s formatted input conversion stdio.3s standard buffered input/output package system.3s issue shell command ungetc.3s push character back into input stream CAVEATS The standard buffered functions do not interact well with certain other library and system functions, especially vfork and abort. SEE ALSO open(2), close(2), read(2), write(2), fread(3s), fseek(3s), and stdio(3s). Printed 3/13/89 2
%%index%% na:288,98; de:386,3286;4032,368; ca:4400,324; se:4724,286; %%index%%000000000092