src/gedlib/charmaps.c
/*================================================
 * hexvalue -- Find hexidecimal value of character
 *==============================================*/
- Find hexidecimal value of character
- Find hexidecimal value of character
INT
hexvalue (INT c)
{
	if (c >= '0' && c <= '9') return c - '0';
	if (c >= 'a' && c <= 'f') return 10 + c - 'a';
	if (c >= 'A' && c <= 'F') return 10 + c - 'A';
	return -1;
}
INT hexvalue ( INT c ) { if ( c >= ' ' && c <= ' ' ) return c - ' ' ; if ( c >= ' ' && c <= ' ' ) return 10 + c - ' ' ; if ( c >= ' ' && c <= ' ' ) return 10 + c - ' ' ; return -1 ; }
hexvalue -- Find hexidecimal value of character
hexvalue -- Find hexidecimal value of character