Given a typeid, get the information about an opaque type.
int nc_inq_opaque(int ncid, nc_type xtype, char *name, size_t *sizep);
ncidxtypenamesizepNC_NOERRNC_EBADTYPEIDNC_EBADFIELDIDNC_EHDFERRThis 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;