ksetvbuf - set the I/O buffer of a data transport stream
LIBRARY CALL
void ksetvbuf(
kfile *file,
char *buf,
int mode,
size_t bufsiz)
INPUT
file - the kfile pointer associated with the open stream
to the data transport, opened earlier with kfopen()
buf - the new I/O buffer or NULL if no buffer is desired
mode - mode that the buffer runs in
bufsiz - the size of the new buffer
OUTPUT
none
RETURN VALUE
none
DESCRIPTION
ksetvbuf(), an alternate form of setvbuf(), can be used
after a stream has been opened but before it is read or
written. It uses the character array buf whose size is
specified by the bufsiz argument instead of an automatically
fixed size of BUFSIZ. If buf is NULL, then no buffer is
is used.
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.