GETPWENT
while ((pwd = GETPWENT()) != NULL && (gid_t)pwd->pw_gid != (gid_t)grp.gr_gid);
while ((pwd = GETPWENT()) != NULL)