int maxgroups;
static int maxgroups;
ingroup(grname)	char *grname;{	static struct group *gptr=NULL;	static gid_t groups[NGROUPS];	register gid_t gid;	register int i;	int maxgroups;	if (gptr == NULL) {		if ((gptr = getgrnam(grname)) == NULL) {			fprintf(stderr, "Warning: unknown group '%s'\n",				grname);			return(0);		}		if ((maxgroups = getgroups(NGROUPS, groups)) < 0) {			perror("getgroups");			exit(1);		}	}	gid = gptr->gr_gid;	for (i = 0; i < maxgroups; i++)		if (gid == groups[i])			return(1);	return(0);}