close the password database
#include <sys/types.h> #include <pwd.h> int endpwent( void );
The endpwent() function closes the password database, so all password access routines behave as if setpwent() had never been called.
0 on success, -1 if an error occurs.
See getpwent().
UNIX
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
cuserid(), errno, getgrent(), getlogin(), getpwent(), getpwnam(), getpwuid(), setpwent()