---
name: "capng_print_caps_text"
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_text"
---

# capng\_print\_caps\_text(3)

print names of values for capabilities set

## NAME

capng\_print\_caps\_text - print names of values for capabilities set

## SYNOPSIS

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

char \*capng\_print\_caps\_text(capng\_print\_t where, capng\_type\_t which);

## DESCRIPTION

capng\_print\_caps\_text will create a text string representation of the internal capability set specified. 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 legal values for the which parameter is CAPNG\_EFFECTIVE, CAPNG\_PERMITTED, CAPNG\_INHERITABLE, CAPNG\_BOUNDING\_SET, or CAPNG\_AMBIENT.

## 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\_numeric**(3)](/capng_print_caps_numeric/3.md), [**capabilities**(7)](/capabilities/7.md)

## AUTHOR

Steve Grubb
