work/bootstrap/gec17.c
EIF_REFERENCE eif_file_group(int gid) {
	char str[NAME_MAX];
#ifdef HAS_GETGRGID
	struct group *gp; /* %%ss moved from above */

	gp = getgrgid(gid);
	if (gp == (struct group *) 0)
		sprintf(str, "%d", gid);		/* Not available: use GID */
	else
		strcpy(str, gp->gr_name);		/* Available: fetch login name */
#else
	sprintf(str, "%d", gid);			/* Not available: use UID */
#endif
	return GE_ms8(str, strlen(str));
}
/*
 * Return the Eiffel string filled in with the name associated with `gid'
 * if found in /etc/group. Otherwise, return fill it in with the numeric
 * value.
 */
Return the Eiffel string filled in with the name associated with `gid'
if found in /etc/group. Otherwise, return fill it in with the numeric
value.
Return the Eiffel string filled in with the name associated with ` gid ' if found in / etc / group . Otherwise return fill it in with the numeric value .
EIF_REFERENCE eif_file_group(int gid) {
	char str[NAME_MAX];
#ifdef HAS_GETGRGID
	struct group *gp; 
	gp = getgrgid(gid);
	if (gp == (struct group *) 0)
		sprintf(str, "%d", gid);		
	else
		strcpy(str, gp->gr_name);		
#else
	sprintf(str, "%d", gid);			
#endif
	return GE_ms8(str, strlen(str));
}
EIF_REFERENCE eif_file_group ( int gid ) { char str [ NAME_MAX ] ; #ifdef HAS_GETGRGID struct group * gp ; gp = getgrgid ( gid ) ; if ( gp == ( struct group * ) 0 ) sprintf ( str , " " , gid ) ; else strcpy ( str , gp -> gr_name ) ; #else sprintf ( str , " " , gid ) ; #endif return GE_ms8 ( str , strlen ( str ) ) ; }
Return the Eiffel string filled in with the name associated with `gid'
 if found in /etc/group.
Return the Eiffel string filled in with the name associated with ` gid ' if found in / etc / group .
/* %%ss moved from above */ /* Not available: use GID */ /* Available: fetch login name */ /* Not available: use UID */