32V/usr/src/cmd/group.c

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

#include <grp.h>
#define	NULL	0

struct	group *getgrgid(), *grp;

main()
{
	if((grp=getgrgid(getgid())) == NULL) 
		printf("%d\n", getgid());
	else
		printf("%s\n", grp->gr_name);
}