FSU_FERROR(3)

NAME
fsu_clearerr, fsu_feof, fsu_ferror - check and reset stream status

LIBRARY
fsu_utils Library (libfsu_utils, -lfsu_utils)

SYNOPSIS
#include <fsu_utils.h>
void
fsu_clearerr(FSU_FILE *stream);
int
fsu_feof(FSU_FILE *stream);
int
fsu_ferror(FSU_FILE *stream);

DESCRIPTION
The function fsu_clearerr() clears the end-of-file and error indicators for the stream pointed to by stream.

The function fsu_feof() tests the end-of-file indicator for the stream pointed to by stream, returning non-zero if it is set. The end-of-file indicator can only be cleared by the function fsu_clearerr().

The function fsu_ferror() tests the error indicator for the stream pointed to by stream, returning non-zero if it is set. The error indicator can only be reset by the fsu_clearerr() function.

ERRORS
These functions should not fail and do not set the external variable errno.

SEE ALSO
ukfs(3)