Next: , Previous: User Defined Types, Up: User Defined Data Types


5.2 Learn the IDs of All Types in Group: NF_INQ_TYPEIDS

Learn the number of types defined in a group, and their IDs.

Usage

     INTEGER FUNCTION NF_INQ_TYPEIDS(INTEGER NCID, INTEGER NTYPES,
             INTEGER TYPEIDS)
NCID
The group id.
NTYPES
A pointer to int which will get the number of types defined in the group. If NULL, ignored.
TYPEIDS
A pointer to an int array which will get the typeids. If NULL, ignored.

Errors

NF_NOERR
No error.
NF_BADID
Bad ncid.

Example

The following example is from the test program nf_test/ftst_vars3.F.

           retval = nf_inq_typeids(ncid, num_types, typeids)
           if (retval .ne. nf_noerr) call handle_err(retval)