int kwrite_pointer(
int id,
kaddr *data,
int type)
INPUT
id - the file id to be written to which was
opened earlier with kopen().
data - the array in which the data will be written from.
num - the number of data points to be written to the
transport.
type - data / structure type.
OUTPUT
none
RETURN VALUE
TRUE (1) on success, FALSE (0) otherwise
DESCRIPTION
This module is used to write a pointer to an
variable sized array. The size of the array
and the data is stored in the transport. The
writer first writes the number of points,
and then calls kwrite_generic() to do the actual writing
of the data. If NULL is passed in then kwrite_pointer()
will write out 0 for the number of points, which will
then be used by kread_pointer() to return NULL.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$BOOTSTRAP/objects/library/kutils/src/kwrite.c
SEE ALSO
kutils(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.