src/obj-tval.c
const char *tval_find_name(int tval)
{
	size_t i = 0;

	for (i = 0; i < N_ELEMENTS(tval_names); i++)
	{
		if (tval == tval_names[i].tval)
			return tval_names[i].name;
	}

	return "unknown";
}
/**
 * Returns the textual equivalent tval of the numeric tval `name`.
 */
Returns the textual equivalent tval of the numeric tval `name`.
Returns the textual equivalent tval of the numeric tval ` name ` .
const char *tval_find_name(int tval)
{
	size_t i = 0;
	for (i = 0; i < N_ELEMENTS(tval_names); i++)
	{
		if (tval == tval_names[i].tval)
			return tval_names[i].name;
	}
	return "unknown";
}
const char * tval_find_name ( int tval ) { size_t i = 0 ; for ( i = 0 ; i < N_ELEMENTS ( tval_names ) ; i ++ ) { if ( tval == tval_names [ i ] . tval ) return tval_names [ i ] . name ; } return " " ; }
Returns the textual equivalent tval of the numeric tval `name`.
Returns the textual equivalent tval of the numeric tval ` name ` .