memcpy(number_buf, p, 4); // U+ should be followed by 4 hex digits | memcpy(number_buf, p, 4); // U+ should be followed by 4 hex digits | ||||
number_buf[4] = 0; | number_buf[4] = 0; | ||||
c = '#'; | c = '#'; | ||||
sscanf(number_buf, "%x", &c); | |||||
sscanf(number_buf, "%x", (unsigned int *)&c); | |||||
// move past the 4 hexdecimal digits | // move past the 4 hexdecimal digits | ||||
for (j = 0; j < 4; j++) { | for (j = 0; j < 4; j++) { |