Use this function to define a variable length array type.
INTEGER FUNCTION NF_DEF_VLEN(INTEGER NCID, CHARACTER*(*) NAME,
INTEGER BASE_TYPEID, INTEGER XTYPEP)
NCIDNAMEBASE_TYPEIDXTYPEPNF_NOERRNF_EMAXNAMENF_ENAMEINUSENF_EBADNAMENF_EBADIDNF_EBADGRPIDNF_EINVALNF_ENOMEMThis example is from nf_test/ftst_vars4.F.
C Create the vlen type.
retval = nf_def_vlen(ncid, vlen_type_name, nf_int, vlen_typeid)
if (retval .ne. nf_noerr) call handle_err(retval)