Thread: accessing lower nibble

  1. #1

    Question 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

  2. #2
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    use & masking to mask off the correct bits [leaving the ones you want to access] and shifting to prep it...
    hasafraggin shizigishin oppashigger...

  3. #3
    thanx a lot

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. vector : accessing values
    By rahulsk1947 in forum C++ Programming
    Replies: 1
    Last Post: 06-01-2009, 09:26 PM
  2. can someone help me with these errors please code included
    By geekrockergal in forum C Programming
    Replies: 7
    Last Post: 02-10-2009, 02:20 PM
  3. Quick Sort
    By e66n06 in forum C++ Programming
    Replies: 13
    Last Post: 08-21-2007, 08:02 AM
  4. to lower or to upper that is the question!
    By verbity in forum C++ Programming
    Replies: 20
    Last Post: 04-25-2007, 06:42 PM
  5. Merge sort please
    By vasanth in forum C Programming
    Replies: 2
    Last Post: 11-09-2003, 12:09 PM