FreeBSD/sys/boot/arm/at91/libat91/strcvt.c
/*
 * .KB_C_FN_DEFINITION_START
 * unsigned p_HexCharValue(char)
 *  This global function returns the decimal value of the validated hex char.
 * .KB_C_FN_DEFINITION_END
 */
.KB_C_FN_DEFINITION_START
unsigned p_HexCharValue(char)
This global function returns the decimal value of the validated hex char.
. KB_C_FN_DEFINITION_START unsigned p_HexCharValue ( char ) This global function returns the decimal value of the validated hex char .
unsigned
p_HexCharValue(char cValue)
{
	if (cValue < ('9' + 1))
		return (cValue - '0');
	if (cValue < ('F' + 1))
		return (cValue - 'A' + 10);
	return (cValue - 'a' + 10);
}
unsigned p_HexCharValue ( char cValue ) { if ( cValue < ( ' ' + 1 ) ) return ( cValue - ' ' ) ; if ( cValue < ( ' ' + 1 ) ) return ( cValue - ' ' + 10 ) ; return ( cValue - ' ' + 10 ) ; }
.KB_C_FN_DEFINITION_START
 unsigned p_HexCharValue(char)
  This global function returns the decimal value of the validated hex char.
. KB_C_FN_DEFINITION_START unsigned p_HexCharValue ( char ) This global function returns the decimal value of the validated hex char .