---
name: "PAPI_num_components"
section: "3"
platform: "linux"
package: "libpapi-dev"
version: "7.1.0-5+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/PAPI_num_components"
---

# PAPI\_num\_components(3)

Get the number of components available on the system.

## NAME

PAPI\_num\_components - Get the number of components available on the system.

## SYNOPSIS

## Detailed Description

**Returns**

Number of components available on the system

```
// Query the library for a component count.
printf("%d components installed., PAPI_num_components() );
```

## Author

Generated automatically by Doxygen for PAPI from the source code.
