BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

kwrite_array - write a variable array

LIBRARY CALL

ssize_t kwrite_array(
   int    id,
   kaddr  data,
   size_t num,
   int    type)

INPUT

OUTPUT

none

RETURN VALUE

the number of points written or -1 on error

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_array() will write out 0 for the number of points, which will then be used by kwrite_array() 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.