fdds_genus - fetch field genus type
SYNOPSIS
#include <fdds.h> (fixed-format sources)
#include <f90dds.h> (free-format sources)
integer fdds_genus(field_genus, bin_tag, field_tag)
-
character(DEFNNAME_MAX) field_genus
integer bin_tag
integer field_tag
DESCRIPTION
fdds_genus returns the generic data type (genus) associated with
the field_tag in the variable, field_genus. The types
include void, bytes, char, unsigned, integer, float, complex
and frame. The returned value is 0 on normal return.
A value of -1 is returned on any error.
INPUT
bin_tag is a binary tag, previously obtained from
fdds_open. It specifies a particular binary
stream.
field_tag is the tag of the field for which the information
is desired.
EXAMPLE
integer bin, tag, ier
character*(DEFNNAME_MAX) name, genus
...
! scan trace headers
tag = fdds_member(bin, 0, ' ')
dowhile (tag.ne.0)
ier = fdds_name(name, bin, tag)
ier = fdds_genus(genus, bin, tag)
...
tag = fdds_next(bin,tag)
enddo
SEE ALSO
fdds_name Fetch field name
fdds_prec Fetch field precision
fdds_align Fetch field alignment
fdds_count Fetch field count
AUTHOR
Jerry Ehlers, BP America (May 2003)