Next: NF_INQ_GRPNAME_FULL, Previous: NF_INQ_GRPNAME_LEN, Up: Groups
Given ncid, find relative name of group. (Root group is named "/").
The name provided by this function is relative to the parent group. For a full path name for the group is, with all parent groups included, separated with a forward slash (as in Unix directory names) See NF_INQ_GRPNAME_FULL.
INTEGER FUNCTION NF_INQ_GRPNAME(INTEGER NCID, CHARACTER*(*) NAME)
NCIDNAMENF_NOERRNF_EBADIDNF_ENOTNC4NF_ESTRICTNC3NF_EHDFERRThis example is from nf_test/ftst_groups.F.
C Check the name of the root group.
retval = nf_inq_grpname(ncid, name_in)
if (retval .ne. nf_noerr) call handle_err(retval)
if (name_in(1:1) .ne. '/') stop 2