Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Coherent 3.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


getpwnam()               General Function              getpwnam()




Get password file information, by name

#include <pwd.h>
struct passwd *getpwnam(uname)
char *uname;

The  COHERENT  system  has five  routines  that  search the  file
/etc/passwd, which  contains information about every  user of the
system.  The  returned structure passwd is  defined in the header
file pwd.h.  For a description of this structure, see pwd.h.

getpwnam attempts to find the first entry with a name of uname.

***** Files *****

/etc/passwd
<pwd.h>

***** See Also *****

endpwent(),  general  functions,  getpwent(), getpwuid(),  pwd.h,
setpwent()

***** Diagnostics *****

getpwnam returns NULL for any error or on end of file.

***** Notes *****

All structures  and information returned are  in static areas in-
ternal to getpwnam.   Therefore, information from a previous call
is overwritten by each subsequent call.
























COHERENT Lexicon                                           Page 1


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026