1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bits from byte array question

Discussion in 'C' started by Alex, Apr 12, 2009.

  1. Alex

    Alex New Member

    Joined:
    Oct 1, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    0
    Hello all,
    Suppose I have a byte array like this one:
    unsigned char arr[26];
    and I would like to get 9 bits (as unsigned int) starting from bit 56
    to 65?
    (and howto build bits 56 to 65 by a given unsigned integer)
    Is there any generic fanction for this out there?
    Thanks,
    Eitan.
     

Share This Page