FreeBSD/contrib/ntp/ntpd/ntp_scanner.c
/*
 * keyword() - Return the keyword associated with token T_ identifier.
 *	       See also token_name() for the string-ized T_ identifier.
 *	       Example: keyword(T_Server) returns "server"
 *			token_name(T_Server) returns "T_Server"
 */
Return the keyword associated with token T_ identifier.
See also token_name() for the string-ized T_ identifier.
Return the keyword associated with token T_ identifier . See also token_name () for the string - ized T_ identifier .
const char *
keyword(
	int token
	)
{
	size_t i;
	const char *text;
	i = token - LOWEST_KEYWORD_ID;
	if (i < COUNTOF(keyword_text))
		text = keyword_text[i];
	else
		text = NULL;
	return (text != NULL)
		   ? text
		   : "(keyword not found)";
}
const char * keyword ( int token ) { size_t i ; const char * text ; i = token - LOWEST_KEYWORD_ID ; if ( i < COUNTOF ( keyword_text ) ) text = keyword_text [ i ] ; else text = NULL ; return ( text != NULL ) ? text : " " ; }
keyword() - Return the keyword associated with token T_ identifier.
keyword () - Return the keyword associated with token T_ identifier .