RTEMS GNU Tools On-Line Library
Stdio
Chapter 3: Input and Output (`stdio.h
')
This chapter comprises functions to manage files
or other input/output streams. Among these functions are subroutines
to generate or scan strings according to specifications from a format string.
The underlying facilities for input and output depend on the host
system, but these functions provide a uniform interface.
The corresponding declarations are in `stdio.h
'.
The reentrant versions of these functions use macros
_stdin_r(reent )
_stdout_r(reent )
_stderr_r(reent )
instead of the globals stdin
, stdout
, and
stderr
. The argument <[reent]> is a pointer to a reentrancy
structure.
clearerr
Clear file or stream error indicator
fclose
Close a file
feof
Test for end of file
ferror
Test whether read/write error has occurred
fflush
Flush buffered file output
fgetc
Get a character from a file or stream
fgetpos
Record position in a stream or file
fgets
Get character string from a file or stream
fiprintf
Write formatted output to file (integer only)
fopen
Open a file
fdopen
Turn an open file into a stream
fputc
Write a character on a stream or file
fputs
Write a character string in a file or stream
fread
Read array elements from a file
freopen
Open a file using an existing file descriptor
fseek
Set file position
fsetpos
Restore position of a stream or file
ftell
Return position in a stream or file
fwrite
Write array elements from memory to a file or stream
getc
Get a character from a file or stream (macro)
getchar
Get a character from standard input (macro)
gets
Get character string from standard input (obsolete)
iprintf
Write formatted output (integer only)
mktemp
Generate unused file name
perror
Print an error message on standard error
putc
Write a character on a stream or file (macro)
putchar
Write a character on standard output (macro)
puts
Write a character string on standard output
remove
Delete a file's name
rename
Rename a file
rewind
Reinitialize a file or stream
setbuf
Specify full buffering for a file or stream
setvbuf
Specify buffering for a file or stream
siprintf
Write formatted output (integer only)
printf
Write formatted output
scanf
Scan and format input
tmpfile
Create a temporary file
tmpnam
Generate name for a temporary file
vprintf
Format variable argument list
Packaging copyright © 1988-2000 OAR Corporation
Context copyright by each document's author. See Free Software Foundation for information.