Home
last modified time | relevance | path

Searched refs:strchar (Results 1 – 1 of 1) sorted by relevance

/openbmc/ipmitool/lib/
H A Dipmi_sdradd.c350 (strlen(strchar) == 4) in ipmi_hex_to_dec()
352 (strchar[0] == '0') in ipmi_hex_to_dec()
354 (strchar[1] == 'x') in ipmi_hex_to_dec()
359 if((strchar[2] >= '0') && (strchar[2] <= '9')) in ipmi_hex_to_dec()
361 retValue += ((strchar[2]-'0') * 16); in ipmi_hex_to_dec()
363 else if((strchar[2] >= 'a') && (strchar[2] <= 'f')) in ipmi_hex_to_dec()
367 else if((strchar[2] >= 'A') && (strchar[2] <= 'F')) in ipmi_hex_to_dec()
376 if((strchar[3] >= '0') && (strchar[3] <= '9')) in ipmi_hex_to_dec()
378 retValue += ((strchar[3]-'0')); in ipmi_hex_to_dec()
380 else if((strchar[3] >= 'a') && (strchar[3] <= 'f')) in ipmi_hex_to_dec()
[all …]