| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | bit fields |
SA> HS> typedef struct
SA> HS> {
SA> HS> char bit0:1;
SA> HS> char bit1:1;
SA> HS> char bit2:1;
SA> HS> char bit3:1;
SA> HS> char bit4:1;
SA> HS> char bit5:1;
SA> HS> char bit6:1;
SA> HS> char bit7:1;
SA> HS> } FLAGS;
SA> That's not a bit field, it's a structure of chars, surely?
True enough.
typedef struct
{
unsigned int
bit0:1,
bit1:1,
bit2:1,
bit3:1,
bit4:1,
bit5:1,
bit6:1,
bit7:1,
bit8:1,
bit9:1,
bita:1,
bitb:1,
bitc:1,
bitd:1,
bite:1,
bitf:1;
} SixteenBits;
> ] * Origin: *YOPS ]I[* 8.4 GIG * RA/FD/FE * Milwaukee, WI (1:154/750)SEEN-BY: 396/1 632/0 371 633/260 267 270 371 634/397 635/506 728 810 639/252 SEEN-BY: 670/218 @PATH: 154/750 222 396/1 633/260 635/506 728 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.