I have a question about combining char variables in C - implementantion on ARM architecture.
My case is to combine few chars storing hex values into one, and it looks like (values are example):
unsigned char part1[] = {0x40, 0x34, ... }
unsigned char part2[] = {0x01, 0x40, ... }
and also i'm taking unsigned char flag[2] = {0x4f, 0x4e}
- that's taken from other C file
I want to have result like unsigned char output[] which containt combined part1, flag2 and part2 in that order.
How can I receive this result?
question from:https://stackoverflow.com/questions/65644496/combining-char-variables-in-c-with-hex-values