bit fields

Karl Heuer karl at haddock.ima.isc.com
Wed Jun 13 11:52:13 AEST 1990


In article <330617 at fiction> Daniel_Roedding at fiction.uucp writes:
>typedef struct { ... } the_bitfield;
>void somefunct(the_bitfield *argh) { ... }
>
>Most compilers do not eat this, since ANSI doesn't allow pointers to
>bitfield structures.

Nonsense.  This is allowed by both Classic C and ANSI C, and it works fine on
the three compilers I tested.  Would you care to post a more complete example?

Karl W. Z. Heuer (karl at ima.ima.isc.com or harvard!ima!karl), The Walking Lint



More information about the Comp.lang.c mailing list