Bit stuffing in C Language

Discussion in 'C Programming' started by sarath1111, Mar 3, 2005.

  1. sarath1111

    sarath1111 Guest

    I have to perform BIT STUFFING in C Language. I have to get data
    from the user and stuff the data and then transmit it. I have to
    destuff it at the other end. I have very less knowledge of performing
    this in C(As this should be done at bit level). How can we perform
    operations at bit level in C?. Please help me how to get started with
    Thanks in advance.
    sarath1111, Mar 3, 2005
    1. Advertisements

  2. sarath1111

    infobahn Guest

    & | ^ ~ << >> &= |= ^= <<= >>=

    0-13-110362-8 pp48-51
    infobahn, Mar 3, 2005
    1. Advertisements

  3. sarath1111

    osmium Guest

    C contains operators to do and, or, exclusive or, one's complement, right
    shift, and left shift. Bit fields can be defined within the context of a

    Typing <c snippets> as a google target would probably yield some examples of
    what others have done in this area. Also try words such as yenc and codec.
    Or browse through a text book on C.
    osmium, Mar 3, 2005
  4. sarath1111

    CBFalconer Guest

    Look up the logical and, or, and xor operations (&, |, ^) in your C
    book, together with bit masks. Don't get distracted to bit fields
    in structures.
    CBFalconer, Mar 3, 2005
  5. sarath1111

    tigervamp Guest

    You mean *bitwise* don't you?

    Rob Gamble
    tigervamp, Mar 3, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.