Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Previous: nc_inq_enum_member, Up: User Defined Data Types


5.32 Learn the Name of a Enum Type: nc_inq_enum_ident

Get the name which is associated with an enum member value.

Usage

     int nc_inq_enum_ident(int ncid, nc_type xtype, long long value, char *identifier);
ncid
The groupid where this enum type exists.
xtype
The typeid for this enum type.
value
The value for which an identifier is sought.
identifier
If non-NULL, a pointer to an already allocated char array which will get the identifier, as a null terminated string. It will have a maximum length of NC_MAX_NAME+1.

Return Code

NC_NOERR
No error.
NC_EBADTYPEID
Bad type id, or not an enum type.
NC_EHDFERR
An error was reported by the HDF5 layer.
NC_EINVAL
The value was not found in the enum.

Example

See the example section for nc_inq_enum for a full example.
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690