type and size of bit-fields

Henry Spencer henry at zoo.toronto.edu
Thu Mar 21 03:29:06 AEST 1991


In article <12638 at adobe.UUCP> taft at adobe.COM writes:
>Now admittedly, nearly everything to do with bit-fields is implementation
>dependent. On the other hand, it doesn't seem unreasonable to expect an
>implementation to support bit-fields of any size up to and including the
>largest integral type. Can anyone offer authoritative information...

It's pretty much as you've stated.  The standard promises almost nothing
about bitfields.  The degree of support for them is a "quality of
implementation" issue.  One would hope for the property you request, but
there is no guarantee of it.
-- 
"[Some people] positively *wish* to     | Henry Spencer @ U of Toronto Zoology
believe ill of the modern world."-R.Peto|  henry at zoo.toronto.edu  utzoo!henry



More information about the Comp.lang.c mailing list