NetCDF  4.4.1.1
 All Data Structures Files Functions Variables Typedefs Macros Modules Pages
dtype.c
Go to the documentation of this file.
1 
7 #include "ncdispatch.h"
8 
59 int
60 nc_inq_type_equal(int ncid1, nc_type typeid1, int ncid2,
61  nc_type typeid2, int *equal)
62 {
63  NC* ncp1;
64  int stat = NC_check_id(ncid1,&ncp1);
65  if(stat != NC_NOERR) return stat;
66  return ncp1->dispatch->inq_type_equal(ncid1,typeid1,ncid2,typeid2,equal);
67 }
68  /* All these functions are part of this named group... */
73 
91 int
92 nc_inq_typeid(int ncid, const char *name, nc_type *typeidp)
93 {
94  NC* ncp;
95  int stat = NC_check_id(ncid,&ncp);
96  if(stat != NC_NOERR) return stat;
97  return ncp->dispatch->inq_typeid(ncid,name,typeidp);
98 }
99 
134 int
135 nc_inq_user_type(int ncid, nc_type xtype, char *name, size_t *size,
136  nc_type *base_nc_typep, size_t *nfieldsp, int *classp)
137 {
138  NC *ncp;
139  int stat = NC_check_id(ncid,&ncp);
140  if(stat != NC_NOERR) return stat;
141  return ncp->dispatch->inq_user_type(ncid, xtype, name, size,
142  base_nc_typep, nfieldsp, classp);
143 } /* End of named group ...*/
145 
int nc_type
The nc_type type is just an int.
Definition: netcdf.h:28
#define NC_NOERR
No Error.
Definition: netcdf.h:315
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:135
int nc_inq_typeid(int ncid, const char *name, nc_type *typeidp)
Find a type by name.
Definition: dtype.c:92

Return to the Main Unidata NetCDF page.
Generated on Fri Dec 16 2016 12:39:53 for NetCDF. NetCDF is a Unidata library.