Close the group database file
#include <grp.h> int endgrent( void );
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The endgrent() routine closes the group name database file, so all group access routines behave as if setgrent() had never been called.
POSIX 1003.1 XSI