FSU_FFLUSH(3)

NAME
fsu_fflush - flush a stream

LIBRARY
fsu_utils Library (libfsu_utils, -lfsu_utils)

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

DESCRIPTION
The function fsu_fflush() forces a write of all buffered data for the given output or update stream via the stream's underlying write function. The open status of the stream is unaffected.

RETURN VALUES
Upon successful completion 0 is returned. Otherwise, EOF is returned and the global variable errno is set to indicate the error.

ERRORS

[EBADF]
    stream is not a stream open for writing.

SEE ALSO
ukfs(3), fsu_fclose(3), fsu_fopen(3)