[Previous] [Contents] [Index] [Next]

setpwent()

Rewind the password database file

Synopsis:

#include <sys/types.h>
#include <pwd.h>

int setpwent( void );

Library:

libc

Description:

The setpwent() function rewinds to the start of the password name database file. It's provided for programs that make multiple lookups in the password database (using the getpwuid() and getpwnam() calls) to avoid opening and closing the password database for each access.

Classification:

Standard Unix

Safety:
Cancellation point Yes
Interrupt handler No
Signal handler No
Thread No

See also:

endpwent(), getpwent()


[Previous] [Contents] [Index] [Next]