5.11 Learn the Name of a Compound Type: nc_inq_compound_name
Get the name of a compound type.
Usage
int nc_inq_compound_name(int ncid, nc_type xtype, char *name);
ncid
- The groupid where this compound type exists.
xtype
- The typeid for this compound type.
name
- Pointer to an already allocated char array which will get the name, as
a null terminated string. It will have a maximum length of
NC_MAX_NAME+1.
Errors
NC_NOERR
- No error.
NC_EBADTYPEID
- Bad type id.
NC_EHDFERR
- An error was reported by the HDF5 layer.
Example
See the example section for nc_inq_compound.