accessing lower nibble

This is a discussion on accessing lower nibble within the C++ Programming forums, part of the General Programming Boards category; given a wsabuf as
WSABUF buf
now what i want is a routine that could access the individual bits from ...

accessing lower nibble

given a wsabuf as

WSABUF buf

now what i want is a routine that could access the individual bits from the buf.buf .

cause when i access like buf.buf[0] it gives me the first byte now what i want is the higher and the lower nibbles seperately and moreover i need the individual bits too ... how can i get hold the lower nibble is there any conversion routine like DWORD for the 32 bit