18   use netcdf
, only: nf90_noerr
    23   character(len = *), 
parameter:: subname = 
'GDNcVarAttrRewind'    26   call dbgmessage(
"%c %d", c1=subname, i=(/stat/))
    32   use netcdf
, only: nf90_noerr, nf90_max_name, nf90_inq_attname, nf90_global
    36   character(len = *), 
intent(out):: name
    38   logical, 
intent(out), 
optional:: vend
    39   character(len = NF90_MAX_NAME):: attrname
    44   if (stat /= nf90_noerr) 
goto 999
    46   new_attrid = ent%attrid
    48   if (ent%attrid >= 0) 
then    49     new_attrid = ent%attrid + 1
    50     stat = nf90_inq_attname(ent%fileid, ent%varid, new_attrid, attrname)
    51     if (stat == nf90_noerr) 
then    61   stat = nf90_inq_attname(ent%fileid, nf90_global, -new_attrid, attrname)
    62   if (stat == nf90_noerr) 
then    63     new_attrid = new_attrid - 1
 
integer function, public vtable_lookup(var, entry)
 
subroutine gdncvarattrrewind(var)
 
character, parameter, public gt_plus
 
subroutine, public dbgmessage(fmt, i, r, d, L, n, c1, c2, c3, ca)
 
subroutine gdncvarattrnext(var, name, vend)
 
integer function, public vtable_set_attrid(var, attrid)