linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bitfield array
@ 2004-01-12 10:10 Massimiliano Cialdi
  2004-01-12 10:29 ` wwp
  2004-01-12 21:06 ` Glynn Clements
  0 siblings, 2 replies; 6+ messages in thread
From: Massimiliano Cialdi @ 2004-01-12 10:10 UTC (permalink / raw)
  To: linux-c-programming

Is it possible to declare a bitfield array?
I tried with

typedef struct
{
  u8_t busy[10]:1;
}dummy;

but I obtain an error:
error: bit-field `busy' has invalid type

I also tried with

typedef struct
{
  u8_t busy:1;
}dummy;
dummy a[10];

but then a is as large as 10 bytes.

thanks

-- 
Massimiliano Cialdi
cialdi@firenze.net
m.cialdi@oksys.it

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-01-13  1:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-12 10:10 bitfield array Massimiliano Cialdi
2004-01-12 10:29 ` wwp
2004-01-12 10:56   ` Massimiliano Cialdi
2004-01-12 13:40     ` Mariano Moreyra
2004-01-13  1:02     ` James Stevenson
2004-01-12 21:06 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).