ptg10805159
Appendix A Function Prototypes 853
int fflush(FILE *fp);
<stdio.h> p. 147
Returns: 0 if OK,EOFon error
int fgetc(FILE *fp);
<stdio.h> p. 150
Returns: next character if OK,EOFon end of file or error
int fgetpos(FILE *restrictfp,fpos_t *restrictpos);
<stdio.h> p. 158
Returns: 0 if OK, nonzero on error
char *fgets(char *restrictbuf,intn,FILE *restrictfp);
<stdio.h> p. 152
Returns:bufif OK,NULLon end of file or error
int fileno(FILE *fp);
<stdio.h> p. 164
Returns: file descriptor associated with the stream,−1 on error
void flockfile(FILE *fp);
<stdio.h> p. 443
FILE *fmemopen(void *restrictbuf,size_tsize,
const char *restricttype);
<stdio.h> p. 171
type:"r", "w", "a", "r+", "w+", "a+"
Returns: stream pointer if OK,NULLon error
FILE *fopen(const char *restrictpath,const char *restricttype);
<stdio.h> p. 148
type:"r", "w", "a", "r+", "w+", "a+"
Returns: file pointer if OK,NULLon error
pid_t fork(void);
<unistd.h> p. 229
Returns: 0 in child, process ID of child in parent,−1 on error
long fpathconf(intfd,intname);
<unistd.h> p. 42
name:_PC_ASYNC_IO, _PC_CHOWN_RESTRICTED,
_PC_FILESIZEBITS, _PC_LINK_MAX,
_PC_MAX_CANON, _PC_MAX_INPUT,
_PC_NAME_MAX, _PC_NO_TRUNC, _PC_PATH_MAX,
_PC_PIPE_BUF, _PC_PRIO_IO, _PC_SYMLINK_MAX,
_PC_SYNC_IO, _PC_TIMESTAMP_RESOLUTION,
_PC_2_SYMLINKS, _PC_VDISABLE
Returns: corresponding value if OK,−1 on error