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

# H5A_OPEN_NAME

The H5A_OPEN_NAME function opens an existing attribute by the name of that attribute within an HDF5 file.

## Syntax

Result = H5A_OPEN_NAME(Loc_id, Name)

## Return Value

Returns the attribute’s identifier number.

## Arguments

### Loc_id

An integer representing the identifier of the group, dataset, or named datatype containing the attribute within.

### Name

A string representing the name of the attribute to be accessed.

## Keywords

None

## Version History

5.6 | Introduced

## See Also

H5A_OPEN_IDX, H5A_CLOSE