I created a long byte sequence that looks like this:
0x401DA1815EB560399FE365DA23AAC0757F1D61EC10839D9B5521F.....
Now I would like to assign it to static unsigned char x [].
Obviously, I get a warning that the hex escape sequence is out of range when I do it here.
static unsigned char x[] = "\x401DA1815EB56039.....";
Format required
static unsigned char x[] = "\x40\x1D\xA1\x81\x5E\xB5\x60\x39.....";
So I'm wondering if in C there is a way for this job without me adding a hexadecimal escape sequence after each byte (may take some time)
source share