Name
getpwnam, getpwuid — get password file entry.
Synopsis
||
#include <pwd.h>
|#include <sys/types.h>
||
struct passwd *getpwnam(const char * name);
||
struct passwd *getpwuid(uid_t uid);
Description
The getpwnam
function returns a pointer to
a structure containing the broken out fields of a line from
/etc/passwd
for the entry that matches the
user name name
.