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

# H5G_GET_NMEMBERS

The H5G_GET_NMEMBERS function returns the number of objects within a group.

Note: This function is not part of the standard HDF5 interface, but is provided as a programming convenience. The H5Giterate() C function is used to retrieve the number of members.

## Syntax

Result = H5G_GET_NMEMBERS(Loc_id, Name)

## Return Value

Returns the number of objects.

## Arguments

### Loc_id

An integer representing the identifier of the file or group.

### Name

A string representing the name of the group for which to retrieve the number of members.

## Keywords

None

## Version History

5.6 | Introduced

## See Also

H5G_GET_MEMBER_NAME