kfile_writedata - write the contents of the data to a khoros transport
LIBRARY CALL
ssize_t kfile_writedata(
int id,
kaddr data,
size_t num)
INPUT
id - the khoros transport descriptor
data - the data array (or string) to be written
num - if not 0 the number of bytes to be written.
OUTPUT
none
RETURN VALUE
The number of bytes written or -1 upon failure
DESCRIPTION
This routine writes the contents of a data array to the
specified khoros transport mechanism. An optional "num_write"
can be used to specify the actual number of bytes to be
written. If "num_write" is 0 then the number of bytes
to be written is computed from the data by using kstrlen().
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$BOOTSTRAP/objects/library/kutils/src/kfile.c
SEE ALSO
kutils(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.