8 void bytetohex(
unsigned char decimal,
char hex[3]) {
10 const char *hexdigits =
"0123456789ABCDEF";
16 number = decimal / 16;
19 hex[0] = hexdigits[number];
20 hex[1] = hexdigits[rest];
35 else if (c>=
'A' && c<=
'F')
37 else if (c>=
'a' && c<=
'f')
void bytetohex(unsigned char decimal, char hex[3])
int fromhex(unsigned char c)