BOOTSTRAP (klibm) functions
LIBRARY ROUTINE
kdatatype_to_define - takes the string version of the data type and returns the #define value.
LIBRARY CALL
int kdatatype_to_define(
char *datatype)
INPUT
- datatype - string giving name of data type
OUTPUT
none
RETURN VALUE
The integer value of the data type or KUNDEFINED if not
a datatype
DESCRIPTION
This routine returns the integer
value of the string data type passed in.
Here is a table of string data types and abbreviations
of string data types that can be used and the return values.
Data Type Return Value
---------------------------------------------------
bit KBIT
byte KBYTE
unsigned byte KUBYTE
ubyte KUBYTE
short KSHORT
unsigned short KUSHORT
ushort KUSHORT
int KINT
integer KINT
unsigned int KUINT
unsigned integer KUINT
uint KUINT
long KLONG
unsigned long KULONG
ulong KULONG
float KFLOAT
double KDOUBLE
complex KCOMPLEX
double complex KDCOMPLEX
dcomplex KDCOMPLEX
string KSTRING
struct KSTRUCT
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
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.