HP-UX Reference (11i v2 07/12) - 3 Library Functions A-M (vol 6)

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().
EXAMPLES
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).
546 Hewlett-Packard Company 3 HP-UX 11i Version 2: December 2007 Update