js1234
July 28th, 2005, 09:25 AM
Hi,
I was hoping I could get some insight on the best way to remove a bit from an array of bytes.
For example:
I have an unsigned char data[10];
I want to remove bit 5 from the second byte of the array and then shift the remaining bits to the left (the end of the array can be zero padded).
Does anyone know of an efficient way to accomplish this?
Thanks!
I was hoping I could get some insight on the best way to remove a bit from an array of bytes.
For example:
I have an unsigned char data[10];
I want to remove bit 5 from the second byte of the array and then shift the remaining bits to the left (the end of the array can be zero padded).
Does anyone know of an efficient way to accomplish this?
Thanks!