---
name: "tlsrpt_strerror"
section: "3"
platform: "linux"
package: "libtlsrpt"
version: "0.5.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/tlsrpt_strerror"
---

# tlsrpt\_strerror(3)

returns a static string describing the error

## NAME

tlsrpt\_strerror - returns a static string describing the error

## SYNOPSIS

\#include \<tlsrpt.h\>

const char\* tlsrpt\_strerror(int errorcode)

## DESCRIPTION

The `tlsrpt_strerror` function returns a static string describing the error. If the error is not an internal error (`tlsrpt_error_code_is_internal` returns 0 in that case), the text describes the C library function that gave an error and for C library functions that get called from different places within the TLSRPT library, the calling function is mentioned in the description. The actual error has to be retrieved from the C library via the `strerror` function or its altrnatives. The errno value to be passed into the `strerror` function must be extracted from the error code via the `tlsrpt_errno_from_error_code` function.

## RETURN VALUE

The tlsrpt\_strerror function returns a static string describing the error.

## SEE ALSO

man:tlsrpt\_error\_code\_is\_internal\[3\], man:tlsrpt\_errno\_from\_error\_code\[3\]

## AUTHOR

Boris Lohner
