fdds_prec - fetch field precision
SYNOPSIS
#include <fdds.h> (fixed-format sources)
#include <f90dds.h> (free-format sources)
integer fdds_prec(bin_tag, field_tag)
-
integer bin_tag
integer field_tag
DESCRIPTION
fdds_prec returns the precision (effective) associated with
the field_tag of a field within a DDS type.
The precision is the number of bytes required for the field.
It includes all elements of a vector.
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
integer RecNum_size
...
! byte size of RecNum field
tag = fdds_member(bin, 0, 'RecNum')
RecNum_size = fdds_prec(bin, tag)
SEE ALSO
fdds_name Fetch field name
fdds_align Fetch field alignment
fdds_count Fetch field count
fdds_genus Fetch field genus
AUTHOR
Jerry Ehlers, BP America (May 2003)