netCDF  4.3.0
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Ignored if NULL

Many of the argurments of netCDF functions are pointers.

For example, the nc_inq() functions takes four pointers:

int nc_inq(int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimidp);

A NULL may be passed for any of these pointers, and it will be ignored. For example, interested in the number of dimensions only, the following code will work:

int ndims;
...
if (nc_inq(ncid, &ndims, NULL, NULL, NULL))
return SOME_ERROR;

Storage for the Result

User must allocate space for the result of an inq function before the function is called.


Generated on Tue Jul 9 2013 19:17:28 for netCDF. NetCDF is a Unidata library.