BOOTSTRAP (kutils) functions
LIBRARY ROUTINE
kread_byte - read an array of signed bytes
LIBRARY CALL
ssize_t kread_byte(
int id,
char *data,
size_t num)
INPUT
- id - the file id to be read which was opened earlier
with kopen().
- num - the number of signed bytes to be read into the
data array.
OUTPUT
- data - the char array in which the data will be stored.
RETURN VALUE
the number of signed bytes read
DESCRIPTION
This module is used to read an array of signed
bytes. The data will need to contain enough
memory to store "num" signed bytes.
(note: bytes are machine independent and therefore
require no conversion. This routine is included to
complete the set of read utilities)
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$BOOTSTRAP/include/kutils/kread.h
SEE ALSO
kutils(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.