NetCDF  4.9.2
dtype.c
Go to the documentation of this file.
1 
7 #include "ncdispatch.h"
8 
68 int
69 nc_inq_type_equal(int ncid1, nc_type typeid1, int ncid2,
70  nc_type typeid2, int *equal)
71 {
72  NC* ncp1;
73  int stat = NC_check_id(ncid1,&ncp1);
74  if(stat != NC_NOERR) return stat;
75  return ncp1->dispatch->inq_type_equal(ncid1,typeid1,ncid2,typeid2,equal);
76 }
77  /* All these functions are part of this named group... */
82 
101 int
102 nc_inq_typeid(int ncid, const char *name, nc_type *typeidp)
103 {
104  NC* ncp;
105  int stat = NC_check_id(ncid,&ncp);
106  if(stat != NC_NOERR) return stat;
107  return ncp->dispatch->inq_typeid(ncid,name,typeidp);
108 }
109 
145 int
146 nc_inq_user_type(int ncid, nc_type xtype, char *name, size_t *size,
147  nc_type *base_nc_typep, size_t *nfieldsp, int *classp)
148 {
149  NC *ncp;
150  int stat = NC_check_id(ncid,&ncp);
151  if(stat != NC_NOERR) return stat;
152  return ncp->dispatch->inq_user_type(ncid, xtype, name, size,
153  base_nc_typep, nfieldsp, classp);
154 } /* End of named group ...*/
156 
int nc_inq_type_equal(int ncid1, nc_type typeid1, int ncid2, nc_type typeid2, int *equal)
Learn if two types are equal.
Definition: dtype.c:69
int nc_inq_typeid(int ncid, const char *name, nc_type *typeidp)
Find a type by name.
Definition: dtype.c:102
int nc_inq_user_type(int ncid, nc_type xtype, char *name, size_t *size, nc_type *base_nc_typep, size_t *nfieldsp, int *classp)
Learn about a user defined type.
Definition: dtype.c:146
#define NC_NOERR
No Error.
Definition: netcdf.h:368
int nc_type
The nc_type type is just an int.
Definition: netcdf.h:25