ssize_t kread_struct(
int id,
kaddr *data,
int type)
INPUT
id - the file id to be read which was
opened earlier with kopen().
type - structure type.
OUTPUT
data - a pointer in which the structures will be stored.
RETURN VALUE
the number of structs read
DESCRIPTION
This module is used to read in a single structure
from a transport. Unlike kread_generic() this
routine will malloc the returned memory for a single
structure.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$BOOTSTRAP/objects/library/kutils/src/kread.c
SEE ALSO
kutils(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.