Routines (alphabetical) > Routines: H > HDF5 Routines > H5T_GET_MEMBER_OFFSET

# H5T_GET_MEMBER_OFFSET

The H5T_GET_MEMBER_OFFSET function returns the byte offset of a field within a compound datatype.

## Syntax

Result = H5T_GET_MEMBER_OFFSET(Datatype_id, Member)

## Return Value

Returns an integer representing the byte offset.

## Arguments

### Datatype_id

An integer representing the datatype’s identifier to be queried.

### Member

An integer representing the member index, starting at zero.

## Keywords

None

## Version History

5.6 | Introduced

## See Also

H5T_GET_MEMBER_CLASS, H5T_GET_MEMBER_NAME, H5T_GET_MEMBER_TYPE, H5T_GET_NMEMBERS