[Previous]
[Contents]
[Next]

endgrent()

close the group database

Synopsis:

#include <grp.h>
int endgrent( void );

Description:

The endgrent() function closes the group database, so all group access routines behave as if setgrent() had never been called.

Returns:

0 on success, -1 if an error occurs.

Examples:

See getgrent().

Classification:

UNIX

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

errno, getgrent(), getgrgid(), getgrnam(), getpwent(), setgrent()


[Previous]
[Contents]
[Next]