HP-UX Reference (11i v1 00/12) - 3 Library Functions A-M (vol 6)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man3/!!!intro.3c
________________________________________________________________
___ ___
g
getspwent(3X) getspwent(3X)
Obsolescent Interfaces
The following interfaces are to be obsoleted: getspwent_r(), getspwuid_r(), getspwaid_r(),
getspwnam_r(), setspwent_r(), endspwent_r(), and fgetspwent_r().
EXAMPLE
The following code excerpt counts the number of entries in the protected password database:
int count = 0;
struct s_passwd *pwbuf;
setspwent();
while (pwbuf=getspwent())
count++;
endspwent();
AUTHOR
getspwent() was developed by HP.
FILES
/tcb/files/auth/*/*
Protected Password database
SEE ALSO
ypcat(1), getgrent(3C), getlogin(3C), getpwent(3C), getprpwent(3), passwd(4).
Section 3−−356 − 3 − HP-UX Release 11i: December 2000
___
___