Routines (alphabetical) > Routines: H > HDF-EOS Routines > EOS_PT_NRECS

# EOS_PT_NRECS

This function returns the number of records in a given level.

## Examples

In this example, we retrieve the number of records in the first level of the 2nd point defined previously:

nrecs = EOS_PT_NRECS(pointID2, 0)

## Syntax

Result = EOS_PT_NRECS( pointID, level)

## Return Value

Returns number of records in a given level if successful and FAIL (–1) otherwise.

## Arguments

### pointID

Point id (long) returned by EOS_PT_CREATE or EOS_PT_ATTACH.

### level

Level number (0-based long).

## Keywords

None

## Version History

5.2 | Introduced