FreeBSD/usr.bin/locale/locale.c
/*
 * Convert locale category id into string
 */
Convert locale category id into string
Convert locale category id into string
const char *
lookup_localecat(int cat)
{
	size_t	i;
	for (i = 0; i < NLCINFO; i++)
		if (lcinfo[i].id == cat) {
			return (lcinfo[i].name);
		}
	return ("UNKNOWN");
}
const char * lookup_localecat ( int cat ) { size_t i ; for ( i = 0 ; i < NLCINFO ; i ++ ) if ( lcinfo [ i ] . id == cat ) { return ( lcinfo [ i ] . name ) ; } return ( " " ) ; }
Convert locale category id into string
Convert locale category id into string