work/bootstrap/gec17.c
EIF_REFERENCE eif_file_owner(int uid) {
	char str[NAME_MAX];
#ifdef HAS_GETPWUID
	struct passwd *pp;

	pp = getpwuid(uid);
	if (pp == (struct passwd *) 0)
		sprintf(str, "%d", uid);		/* Not available: use UID */
	else
		strcpy(str, pp->pw_name);		/* Available: fetch login name */
#else
	sprintf(str, "%d", uid);			/* Not available: use UID */
#endif
	return GE_ms8(str, strlen(str));
}
/*
 * Return the Eiffel string filled in with the name associated with `uid'
 * if found in /etc/passwd. Otherwise, return fill it in with the numeric
 * value.
 */
Return the Eiffel string filled in with the name associated with `uid'
if found in /etc/passwd. Otherwise, return fill it in with the numeric
value.
Return the Eiffel string filled in with the name associated with ` uid ' if found in / etc / passwd . Otherwise return fill it in with the numeric value .
EIF_REFERENCE eif_file_owner(int uid) {
	char str[NAME_MAX];
#ifdef HAS_GETPWUID
	struct passwd *pp;
	pp = getpwuid(uid);
	if (pp == (struct passwd *) 0)
		sprintf(str, "%d", uid);		
	else
		strcpy(str, pp->pw_name);		
#else
	sprintf(str, "%d", uid);			
#endif
	return GE_ms8(str, strlen(str));
}
EIF_REFERENCE eif_file_owner ( int uid ) { char str [ NAME_MAX ] ; #ifdef HAS_GETPWUID struct passwd * pp ; pp = getpwuid ( uid ) ; if ( pp == ( struct passwd * ) 0 ) sprintf ( str , " " , uid ) ; else strcpy ( str , pp -> pw_name ) ; #else sprintf ( str , " " , uid ) ; #endif return GE_ms8 ( str , strlen ( str ) ) ; }
Return the Eiffel string filled in with the name associated with `uid'
 if found in /etc/passwd.
Return the Eiffel string filled in with the name associated with ` uid ' if found in / etc / passwd .
/* Not available: use UID */ /* Available: fetch login name */ /* Not available: use UID */