I am trying to fill a char array with some hex values, and I need one of the values to be 0x00.
The problem is that C++ has 0x00 as the terminating character, so anything I put after 0x00 it will just ignore.
For example, I want to fill a character array with something like:
0xC0 0x00 0x01 0xBB 0xFC 0xFD
But when I do so, it just ignores everything after 0x00 because it thinks it is the terminating character.
My brain is fried for the day, so I might just be missing something obvious, so feel free to point out my stupidity.
The problem is that C++ has 0x00 as the terminating character, so anything I put after 0x00 it will just ignore.
For example, I want to fill a character array with something like:
0xC0 0x00 0x01 0xBB 0xFC 0xFD
But when I do so, it just ignores everything after 0x00 because it thinks it is the terminating character.
My brain is fried for the day, so I might just be missing something obvious, so feel free to point out my stupidity.