Lines Matching refs:ch
70 unsigned char ch; in hexstr_to_bytes() local
93 ch = (unsigned char) *hexstr; in hexstr_to_bytes()
95 if (!isxdigit(ch)) { in hexstr_to_bytes()
102 if ((ch >= '0') && (ch <= '9')) in hexstr_to_bytes()
103 ch -= '0'; in hexstr_to_bytes()
104 else if ((ch >= 'A') && (ch <= 'F')) in hexstr_to_bytes()
105 ch = ch - 'A' + 10; in hexstr_to_bytes()
106 else if ((ch >= 'a') && (ch <= 'f')) in hexstr_to_bytes()
107 ch = ch - 'a' + 10; in hexstr_to_bytes()
110 b[i/2] |= ch; in hexstr_to_bytes()
112 b[i/2] = (ch << 4); in hexstr_to_bytes()