I'm trying to covert a 32 bit binary value into int8_t array. I'm not sure how to do this, and I'm struggling to find any documentation explaining the process.
I was thinking that each 8 bits represents an integer, and then that's the array, but I'm not sure.
Edit: The number I'm trying to represent is 01000011 01010000 00000000 00000000.
union.0and1? Your question is very unclear. Do you have some code to share for your attempt?unsigned charoruint8_t) are used, not a signed type, due to issues with sign bits and incomplete specifications of the behavior of signed types in the C standard. Are you sure you wantint8_t, notuint8_t?