I am trying to pack 4 6 bits data into 3 bytes. How do I check whether the packing that I have done is correct? I
don't want to write the codes for unpacking the data before checking that the codes for packing is correct. Following
is my code segment :
int packbit (unsigned char *a, int n, unsigned char *b)
Pls help with some code examples. Thanks.