#include <grp.h> struct group *fgetgrent(FILE *file);
This function, in MS-DOS, is exactly the same as getgrent (see section getgrent).
getgrent