BOOTSTRAP (kutils) functions
LIBRARY ROUTINE
kfflush - flush buffered output of a data transport stream
LIBRARY CALL
int kfflush(
kfile *file)
INPUT
- file - the kfile pointer associated with the open stream
to the data transport, opened earlier with kfopen()
OUTPUT
none
RETURN VALUE
0 on success, EOF if the file was not open for writing,
or if a write error occurred.
DESCRIPTION
This function is a replacement for the system "fflush"
call; kfflush() supports all khoros data transport
mechanisms, not just Unix files.
This routine is used to flush any buffered output;
any data in the buffer of the output stream is written
to the data transport stream specified.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$BOOTSTRAP/objects/library/kutils/src/kstdio.c
SEE ALSO
kutils(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.