fdds_offset - field offset within DDS type


SYNOPSIS

#include <fdds.h> (fixed-format sources)
#include <f90dds.h> (free-format sources)

integer function fdds_offset(bin_tag, field_tag)

integer bin_tag
integer field_tag

DESCRIPTION

fdds_offset returns the byte offset of a field within a DDS binary.

INPUT

bin_tag is a binary tag, previously obtained from fdds_open. It specifies a particular binary stream.

field_tag is a tag that identifies a field within bin_tag.

OUTPUT

The return value is the byte offset of field_tag within bin_tag, or -1 if an error occurred.

EXAMPLES

      integer bin, field
      integer buf(3)
      pointer (ptr_buf, buf)
      integer*2 RecNum
      pointer (ptr_RecNum, RecNum)
      ...
      ! find RecNum field within buf (short int)
      field = fdds_member(bin, 0, 'RecNum')
      ptr_RecNum = (ptr_buf + fdds_offset(bin, field))
    

SEE ALSO

fdds_index
    

AUTHOR

R. L. Selzler, EPTG (May, 1994)