Close the password database file
#include <sys/types.h> #include <pwd.h> int endpwent( void );
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The endpwent() function closes the password name database file, so all password access routines behave as if setpwent() had never been called.