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

# H5T_GET_CLASS

The H5T_GET_CLASS function returns the datatype’s class.

## Syntax

Result = H5T_GET_CLASS(Datatype_id)

## Return Value

Returns a string containing the datatype’s class. Possible return values include:

- ‘H5T_INTEGER’
- ‘H5T_FLOAT’
- ‘H5T_TIME’
- ‘H5T_STRING’
- ‘H5T_BITFIELD’
- ‘H5T_OPAQUE’
- ‘H5T_COMPOUND’
- ‘H5T_REFERENCE’
- ‘H5T_ENUM’
- ‘H5T_VLEN’
- ‘H5T_ARRAY’
- ‘H5T_NO_CLASS’

## Arguments

### Datatype_id

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

## Keywords

None

## Version History

5.6 | Introduced

## See Also

H5T_GET_SIZE, H5T_GET_SUPER