Thanks John. yes, I am familiar with this way, I just wanted to know
whether there is a way to make bit field array. From Igor's reply I
understood that it is not possible in C.
Thanks,
Lloyd
On Thu, 2007-03-01 at 09:48 -0600, John Stanton wrote:
> Use a mask to load from and store to your bit field/array by using a
> bitwise AND (&).
>
> Lloyd wrote:
> > Even though I know this is not the right question to ask this list, I
> > would expect some help from you.
> >
> > The question is regarding C bit fields..
> >
> > struct
> > {
> > unsigned int a:1;
> > };
> >
> > This declares a to hold 1 bit value;
> >
> > How can I make an array of bit fields? something like, using the 16 bits
> > of a short as an array of bits
> >
> > Thanks,
> > Lloyd
> >
> > Sorry for asking irrelevant question to this list.
> >
> >
> > ______________________________________
> > Scanned and protected by Email scanner
> >
> > -----------------------------------------------------------------------------
> > To unsubscribe, send email to [EMAIL PROTECTED]
> > -----------------------------------------------------------------------------
> >
>
>
> -----------------------------------------------------------------------------
> To unsubscribe, send email to [EMAIL PROTECTED]
> -----------------------------------------------------------------------------
______________________________________
Scanned and protected by Email scanner
-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------