Many of the argurments of netCDF functions are pointers.
For example, the nc_inq() functions takes four pointers:
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:
User must allocate space for the result of an inq function before the function is called.