How to convert the list of the 16bit numbers to the hexadecimal string like "\x0f\x56\x44\xe0"
.
How do these 16 bit values look? They are the result of the macro expansion too #define make_word(arg1, arg2) arg1 << 16 + arg2
. So the full call should look like:
some_function(MAKE_HEX_STR(make_word(1, 2), make_word(3, 4), make_word(5, 6));
and should expands to the:
some_function("\x01\x02\x03\x04\x05\x06);