Next: , Previous: bpipe_datatype_init, Up: Utility Functions


A.4.5 bpipe_datatype_name

Attach a name to a BPDataType.

Synopsis

     #include <bpipe/bpipe.h>
     
     
     
char *bpipe_datatype_name(BPDataType type);

Parameters

BPDataType type
the datatype
          
          
Possible values for a BPDataType are as follows: BPDType_char, BPDType_double, BPDType_int, BPDType_uint, BPDType_DVector2, BPDType_DVector3, BPDType_IVector2, BPDType_IVector3, BPDType_UIVector2, BPDType_UIVector3, BPDType_DComplex, BPDType_DCVector2, BPDType_DCVector3

Description

Attach a name to a BPDataType.

Returns

This routine will return a pointer to a string which contains the name of the datatype corresponding to the passed BPDataType value. If the passed value is bogus, it returns NULL. Please note that the pointer returned points to the original copy of the field's name. Do not change this data!.