I have a 5*5 unsigned long matrix which I need to convert to a 1-D array of unsigned chars in C. The size of the matrix is 200 bytes and that of the char array 128 bytes.
I don't know how to go about it. Any help will be appreciated.
The signature of the function is given below:
void fromLongtochar(unsigned char* bytes, unsigned long* words){ }
I need to generate the bytes array.
Any help will be greatly appreciated. Thanks in advance