#include <gp.h> int gptypelen(type) int type;
Valid TDF datatypes are described in include/gp.h.
#define GP_BYTE 1 #define GP_SHORT 2 #define GP_LONG 3 #define GP_INT GP_LONG #define GP_FLOAT 4 #define GP_REAL GP_FLOAT #define GP_DOUBLE 5 #define GP_STRING_MOD 10 #define GP_STRING(x) (GP_STRING_MOD*(x))
GP_STRING is a variable width datatype used for strings. The width in bytes of GP_STRING(x) is x.
Applications are encouraged to allow space for a trailing \ character when defining string datatypes.
gptypelen returns the length of a valid TDF datatype in bytes. Otherwise, gptypelen calls *gperr() with error code EGP_BAD_DATATYPE, and returns -1.
EGP_BAD_DATATYPE
include/gp.h, /usr/include/errno.h, lib/libcdf.a
gpatt, gpdim, gperr, gpio, gplink, gpname, gprel, gpset, gpvar, datasets
None.
Last Update: $Date: 2001/12/14 21:23:24 $