| Main index | Section 3 | Options |
#include <sys/types.h>
#include <security/pam_appl.h>
The array and the strings it lists are allocated using malloc(3), and should be released using free(3) after use:
char **envlist, **env;
envlist = environ;
environ = pam_getenvlist(pamh);
/* do something nifty */
for (env = environ; *env != NULL; env++)
free(*env);
free(environ);
environ = envlist;
X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules, June 1997.
The OpenPAM library is maintained by Dag-Erling Sm/orgrav <Mt des@des.no>.
| PAM_GETENVLIST (3) | June 27, 2023 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Unix is a junk OS designed by a committee of PhDs. | ” |
| — Dave Cutler | ||