473,396 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Bit stuffing in C Language

hi,
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
this.
Thanks in advance.
SARATH

Nov 14 '05 #1
4 8276
sa********@gmail.com wrote:

hi,
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
this.


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

0-13-110362-8 pp48-51
Nov 14 '05 #2
<sa********@gmail.com> wrote:
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
this.


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
structure.

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.
Nov 14 '05 #3
sa********@gmail.com wrote:

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 this.


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.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
Nov 14 '05 #4

CBFalconer wrote:
sa********@gmail.com wrote:

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 this.


Look up the logical and, or, and xor operations (&, |, ^) in your C


You mean *bitwise* don't you?

Rob Gamble

Nov 14 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ree | last post by:
When I download the files using InternetReadFile, they seem to lose the formating all the spaces gets removed, and thus I can't open the file. Here is the file (it a doc fie) ________ ÐÏࡱá
0
by: Thiva Charanasri | last post by:
http://www.poweroflanguage.org Track: Computer Language 1st World Congress on the Power of Language: Theory, Practice and Performance Date: March 6 - 10, 2006 Bangkok, Thailand On this...
2
by: Steven T. Hatton | last post by:
I'm trying to parse an ELF file to build a human readable representation. I know it's been done before, and there are tools such as objdump, nm, readelf, c++filt, etc. I can look at the source to...
22
by: Michael Nahas | last post by:
Antti & all interested, The draft description of my language to replace C is available at: http://nahas.is-a-geek.com/~mike/MyC.pdf I am a long time C programmer (I read the old testament...
134
by: evolnet.regular | last post by:
I've been utilising C for lots of small and a few medium-sized personal projects over the course of the past decade, and I've realised lately just how little progress it's made since then. I've...
0
by: Thiva Charanasri | last post by:
http://www.poweroflanguage.org Track: Computer Language 1st World Congress on the Power of Language: Theory, Practice and Performance Date: March 6 - 10, 2006 Bangkok, Thailand On this...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Languageâ€, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
10
by: Immortalist | last post by:
Various aquisition devices that guide learning along particular pathways towards human biases. And as E.O. Wilson might say mental development appears to be genetically constrained. (1) Language...
17
by: CoreyWhite | last post by:
I bought this book years ago, when I was just learning C++. Since then I've gone through every math course offered at my college, taken courses on coding C & thinking in terms how how to make the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.