Rewind the password database file
#include <sys/types.h> #include <pwd.h> int setpwent( void );
Use the -l c option to qcc to link against this library. This library is usually included automatically.
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.
POSIX 1003.1 XSI
endpwent(), getpwent(), getpwent_r()