BOOTSTRAP (klibm) functions
LIBRARY ROUTINE
kdata_size - return the size of a khoros data type
LIBRARY CALL
size_t
kdata_size(int datatype)
INPUT
- datatype - the data type for which the
size is being requested.
OUTPUT
none
RETURN VALUE
The size of the data type specified by
the datatype input argument. If the
datatype is not known, this function
returns 0.
DESCRIPTION
This function returns the size of an
element of data of a certain data type
on the current machine. For example,
this routine will return sizeof(float)
if kdata_size(KFLOAT) is called.
Invoking this call:
kmach_sizeof(kmach_type(NULL),datatype)
will result in exactly the same information.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
For the bit case, which really should return
1/8, this function returns 1.
MODIFICATION
none
FILES
$BOOTSTRAP/objects/library/klibm/src/kdata_type.c
SEE ALSO
klibm(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.