FSU_FGETC(3)

NAME
fsu_fgetc - get next character or word from input stream

LIBRARY
fsu_utils Library (libfsu_utils, -lfsu_utils)

SYNOPSIS
#include <fsu_utils.h>
int
fsu_fgetc(FSU_FILE *stream);

DESCRIPTION
The fsu_fgetc() function obtains the next input character (if present) from the stream pointed at by stream.

RETURN VALUES
If successful, this routine returns the next requested object from the stream. If the stream is at end-of-file or a read error occurs, the routines return EOF. The routines fsu_feof(3) and fsu_ferror(3) must be used to distinguish between end-of-file and error. If an error occurs, the global variable errno is set to indicate the error. The end-of-file condition is remembered, even on a terminal, and all subsequent attempts to read will return EOF until the condition is cleared with fsu_clearerr(3).

SEE ALSO
fsu_ferror(3), fsu_fopen(3), fsu_fread(3), ukfs(3)