DOKK / manpages / debian 10 / libpam0g-dev / pam_strerror.3.en
PAM_STRERROR(3) Linux-PAM Manual PAM_STRERROR(3)

pam_strerror - return string describing PAM error code

#include <security/pam_appl.h>

const char *pam_strerror(pam_handle_t *pamh, int errnum);

The pam_strerror function returns a pointer to a string describing the error code passed in the argument errnum, possibly using the LC_MESSAGES part of the current locale to select the appropriate language. This string must not be modified by the application. No library function will modify this string.

This function returns always a pointer to a string.

pam(7)

05/18/2017 Linux-PAM Manual