libs/libc/source/stdlib/strtol.cpp
// Convert a character into a digit.
Convert a character into a digit.
Convert a character into a digit .
static int debase(STRTOL_CHAR c)
{
	if(STRTOL_L('0') <= c && c <= STRTOL_L('9'))
		return c - STRTOL_L('0');
	if(STRTOL_L('a') <= c && c <= STRTOL_L('z'))
		return 10 + c - STRTOL_L('a');
	if(STRTOL_L('A') <= c && c <= STRTOL_L('Z'))
		return 10 + c - STRTOL_L('A');
	return -1;
}
static int debase ( STRTOL_CHAR c ) { if ( STRTOL_L ( ' ' ) <= c && c <= STRTOL_L ( ' ' ) ) return c - STRTOL_L ( ' ' ) ; if ( STRTOL_L ( ' ' ) <= c && c <= STRTOL_L ( ' ' ) ) return 10 + c - STRTOL_L ( ' ' ) ; if ( STRTOL_L ( ' ' ) <= c && c <= STRTOL_L ( ' ' ) ) return 10 + c - STRTOL_L ( ' ' ) ; return -1 ; }
Convert a character into a digit.
Convert a character into a digit .