** Converts a 2 character hexidecimal string to an integer. */
| 1525 | ** Converts a 2 character hexidecimal string to an integer. |
| 1526 | */ |
| 1527 | int msHexToInt(char *hex) { |
| 1528 | int number; |
| 1529 | |
| 1530 | number = (hex[0] >= 'A' ? ((hex[0] & 0xdf) - 'A')+10 : (hex[0] - '0')); |
| 1531 | number *= 16; |
| 1532 | number += (hex[1] >= 'A' ? ((hex[1] & 0xdf) - 'A')+10 : (hex[1] - '0')); |
| 1533 | |
| 1534 | return(number); |
| 1535 | } |
| 1536 | |
| 1537 | |
| 1538 | /* |
no outgoing calls
no test coverage detected