V7M/src/libc/stdio/getgrgid.c

Compare this file to the similar file:
Show the results in this format:

#include <grp.h>

struct group *
getgrgid(gid)
register gid;
{
	register struct group *p;
	struct group *getgrent();

	setgrent();
	while( (p = getgrent()) && p->gr_gid != gid );
	endgrent();
	return(p);
}