HP C/iX Library Reference Manual (30026-90004)
46 Chapter4
HP C/iX Library Header Descriptions
Header File Contents
FILENAME_MAX macro Specifies the maximum number of characters allowed in a
file name.
fileno()
b
macro, function Maps a stream pointer to a file descriptor.
fopen() function Opens a file.
FOPEN_MAX macro Specifies the minimum number of files that the operating
system guarantees may be opened simultaneously.
fpos_t type definition A type definition for an object capable of defining all unique
locations within a file.
fprintf() function Writes data in formatted form to an open stream.
fputc() function Writes a character to an output stream.
fputs() function Writes a string to an output stream.
fread() function Reads data items from an open stream.
freopen() function Closes and reopens a stream.
fscanf() function Reads externally formatted data from an open stream.
fseek() function Positions the next I/O operation on an open stream to an
new position.
fsetpos() function Sets the file position for the stream.
ftell() function Returns the current file position indicator for the next I/O
operation on an open stream.
fwrite() function Writes data items to an open stream.
getc() macro, function Reads a character from an open stream.
getchar() macro, function Reads a character from the standard input stream stdin.
gets() function Reads a string from the standard input stream stdin.
getw()
c
function Reads a word (4 bytes) from an open stream.
L_tmpnam macro Specifies the number of bytes needed to hold a temporary file
name generated by the tmpnam function.
NULL macro The constant 0.
perror() function Prints an error message corresponding to the errno global
variable.
printf() function Writes data in formatted form to the standard output
stream stdout.
putc() macro, function Writes a character to an open stream.
Table 4-13. Input/Output <stdio.h>
Name Type Description