# pam_getenv(3) - phpMan

[PAM_GETENV(3)]                  Linux-PAM Manual                  [PAM_GETENV(3)]



**NAME**
       pam_getenv - get a PAM environment variable

**SYNOPSIS**
       **#include** **<security/pam**___**appl.h>**

       **const** **char** ***pam**___**getenv(pam**___**handle**___**t** *****_pamh_**,** **const** **char** *****_name_**);**

**DESCRIPTION**
       The **pam**___**getenv** function searches the PAM environment list as associated
       with the handle _pamh_ for an item that matches the string pointed to by
       _name_ and returns a pointer to the value of the environment variable.
       The application is not allowed to free the data.

**RETURN** **VALUES**
       The **pam**___**getenv** function returns NULL on failure.

**SEE** **ALSO**
       **pam**___**[start**(3)], **pam**___**[getenvlist**(3)], **pam**___**[putenv**(3)], [**pam**(7)]



Linux-PAM Manual                  06/08/2020                     [PAM_GETENV(3)]
