subsys/debug/gdb_server.c
/*
 * Consume two hex characters from a string and return the corresponding
 * value.
 */
Consume two hex characters from a string and return the corresponding
value.
Consume two hex characters from a string and return the corresponding value .
static int hex_str_to_byte(unsigned char **str)
{
	unsigned char *ptr = *str;
	int byte;
	byte = get_hex_char_value(*ptr++);
	byte = (byte << 4) + get_hex_char_value(*ptr++);
	if (byte >= 0) {
		*str = ptr;
	}
	return byte;
}
static int hex_str_to_byte ( unsigned char * * str ) { unsigned char * ptr = * str ; int byte ; byte = get_hex_char_value ( * ptr ++ ) ; byte = ( byte << 4 ) + get_hex_char_value ( * ptr ++ ) ; if ( byte >= 0 ) { * str = ptr ; } return byte ; }
Consume two hex characters from a string and return the corresponding
 value.
Consume two hex characters from a string and return the corresponding value .