kgetbuffer - get the current data transport stream's input/output buffer and it's size
LIBRARY CALL
char *kgetbuffer(
kfile *file,
size_t *bufsiz)
INPUT
file - the kfile transport to be written which was
opened earlier with kfopen().
OUTPUT
bufsiz - return the size of the new buffer if not NULL
RETURN VALUE
The externally inialized buf or NULL if the
the transport is non-buffered or if the buffer is the
internal buffer.
DESCRIPTION
kgetbuffer(), the opposite from ksetvbuf(), can be used
after a stream buffer has been initialized. It returns
the initialized stream buffer. The character array buf
whose size is returned as the bufsiz argument, unless NULL.
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.