BOOTSTRAP (kutils) functions
LIBRARY ROUTINE
kfwrite - write to a data transport stream
LIBRARY CALL
size_t kfwrite(
kaddr ptr,
size_t size,
size_t nitems,
kfile *file)
INPUT
- ptr - a pointer to allocated space from which
to write the data
- size - the size, in bytes, of each item
- nitems - the number of items to be written
- file - the data transport transport to be written to;
must have been opened earlier using kfopen().
OUTPUT
none
RETURN VALUE
The number of items written on success, 0 if
an error is encountered.
DESCRIPTION
This function is a replacement for the system "fwrite"
call; kwrite() supports all khoros data transport
mechanisms, not just Unix files.
The routine will write 'nitem' items, each of 'size'
bytes to the data transport stream associated
with 'file' from the memory location accessed by 'ptr'.
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.