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

# H5T_GET_NMEMBERS

The H5T_GET_NMEMBERS function returns the number of fields in a compound datatype.

## Syntax

Result = H5T_GET_NMEMBERS(Datatype_id)

## Return Value

Returns the number of fields.

## Arguments

### Datatype_id

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

## Keywords

None

## Version History

5.6 | Introduced

## See Also

H5T_GET_MEMBER_CLASS, H5T_GET_MEMBER_NAME, H5T_GET_MEMBER_OFFSET, H5T_GET_MEMBER_TYPE