src/treebuilder/element-type.c
const char *element_type_to_name(element_type type)
{
	size_t i;

	for (i = 0; i < sizeof(wordlist) / sizeof(wordlist[0]); i++) {
		if (wordlist[i].type == type) {
			return wordlist[i].name;
		}
	}

	return "UNKNOWN";
}
/**
 * Convert an element type to a name
 *
 * \param type  The element type
 * \return Pointer to name
 */
Convert an element type to a name
\param type  The element type
\return Pointer to name
Convert an element type to a name \ param type The element type \ return Pointer to name
const char *element_type_to_name(element_type type)
{
	size_t i;
	for (i = 0; i < sizeof(wordlist) / sizeof(wordlist[0]); i++) {
		if (wordlist[i].type == type) {
			return wordlist[i].name;
		}
	}
	return "UNKNOWN";
}
const char * element_type_to_name ( element_type type ) { size_t i ; for ( i = 0 ; i < sizeof ( wordlist ) / sizeof ( wordlist [ 0 ] ) ; i ++ ) { if ( wordlist [ i ] . type == type ) { return wordlist [ i ] . name ; } } return " " ; }
Convert an element type to a name
 \param type  The element type
 \return Pointer to name
Convert an element type to a name \ param type The element type \ return Pointer to name