NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

[netcdfgroup] valid range for ncid?

Hello,

I have a question about the C interface (probably also for fortran):

What is the valid range of the (group or dataset) ncid's returned by
calls to nc_create, nc_open, or nc_inq_ncid?  Can I assume that a
valid ncid will always be strictly > 0?  Or >= 0?

I have the same question for varids and dimids.  It seems that these
are numbered incrementally, starting at 0.  Can I assume they will not
be negative, or is such a guarantee deliberately left out of the
interface?

best,

Thomas