Given a typeid, get the information about an opaque type.
int nc_inq_opaque(int ncid, nc_type xtype, char *name, size_t *sizep);
ncid
xtype
name
sizep
NC_NOERR
NC_EBADTYPEID
NC_EBADFIELDID
NC_EHDFERR
This example is from test program libsrc4/tst_opaques.c:
if (nc_def_opaque(ncid, BASE_SIZE, TYPE_NAME, &xtype)) ERR; if (nc_inq_opaque(ncid, xtype, name_in, &base_size_in)) ERR; if (strcmp(name_in, TYPE_NAME) || base_size_in != BASE_SIZE) ERR;