---
name: "capng_print_caps_numeric"
section: "3"
platform: "linux"
package: "libcap-ng"
version: "0.9.6-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/capng_print_caps_numeric"
---

# capng\_print\_caps\_numeric(3)

print numeric values for capabilities set

## NAME

capng\_print\_caps\_numeric - print numeric values for capabilities set

## SYNOPSIS

**#include \<cap-ng.h\>**

char \*capng\_print\_caps\_numeric(capng\_print\_t where, capng\_select\_t set);

## DESCRIPTION

capng\_print\_caps\_numeric will create a numeric representation of the internal capabilities. The representation can be sent to either stdout or a buffer by passing CAPNG\_PRINT\_STDOUT or CAPNG\_PRINT\_BUFFER respectively for the where parameter. If the option was for a buffer, this function will malloc a buffer that the caller must free.

The set parameter controls what is included in the representation. The legal options are CAPNG\_SELECT\_CAPS for the traditional capabilities, CAPNG\_SELECT\_BOUNDS for the bounding set, CAPNG\_SELECT\_BOTH if printing both is desired, CAPNG\_SELECT\_AMBIENT if only printing the ambient capabilities, or CAPNG\_SELECT\_ALL if printing all is desired.

## RETURN VALUE

If CAPNG\_PRINT\_BUFFER was selected for where, this will be the text buffer and NULL on failure. Don't forget to free it. If CAPNG\_PRINT\_STDOUT was selected then this value will be NULL no matter what.

## SEE ALSO

[**capng\_print\_caps\_text**(3)](/capng_print_caps_text/3.md), [**capabilities**(7)](/capabilities/7.md)

## AUTHOR

Steve Grubb
