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

# H5A_GET_NUM_ATTRS

The H5A_GET_NUM_ATTRS function returns the number of attributes attached to a group, dataset, or a named datatype.

## Syntax

Result = H5A_GET_NUM_ATTRS(Loc_id)

## Return Value

Returns the number of attributes.

## Arguments

### Loc_id

An integer representing the identifier of the group, dataset, or named datatype to query.

## Keywords

None

## Version History

5.6 | Introduced

## See Also

H5A_OPEN_IDX