I have an input like
char *input="00112233FFAA";
uint8_t output[6];
What is the easiest way to convert input
into output
with sscanf
? (prefer 1 line with no loop) The solution I have in mind doesn't scale to 20+ hex string.
sscanf(input, "%x%x%x%x%x",output[0], output[1]....output[5]);