P
PSN
Hello Group,
I have a character array of size 2;
char *pArray=(char *)malloc(10);
memset(pArray, 1, 10); // 0000000100000001
I want to apply shift operations, so as '&' and '|' operations on the
whole buffer at once. How can i do it ??
Ex: pArray & 0x01 ----> 1;
pArray >> 1 ----> 0000000010000000;
The 2 character buffer is just an example, and i wish to use buffers
of variable sizes.
Thanks a lot again for your time,
Prakash
I have a character array of size 2;
char *pArray=(char *)malloc(10);
memset(pArray, 1, 10); // 0000000100000001
I want to apply shift operations, so as '&' and '|' operations on the
whole buffer at once. How can i do it ??
Ex: pArray & 0x01 ----> 1;
pArray >> 1 ----> 0000000010000000;
The 2 character buffer is just an example, and i wish to use buffers
of variable sizes.
Thanks a lot again for your time,
Prakash