[Previous]
[Contents]
[Next]

endpwent()

close the password database

Synopsis:

#include <sys/types.h>
#include <pwd.h>
int endpwent( void );

Description:

The endpwent() function closes the password database, so all password access routines behave as if setpwent() had never been called.

Returns:

0 on success, -1 if an error occurs.

Examples:

See getpwent().

Classification:

UNIX

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

cuserid(), errno, getgrent(), getlogin(), getpwent(), getpwnam(), getpwuid(), setpwent()


[Previous]
[Contents]
[Next]