bitfields: how to cast (int) into a bit field?

idallen at watmath.UUCP idallen at watmath.UUCP
Mon Dec 22 12:13:25 AEST 1986


How does one cast an integer into, say, a 6-bit bit field in such a
manner that LINT won't complain "conversion may lose accuracy"?

How does one create a typedef for a bit field, such that one might use
it to perform the above cast?
-- 
        -IAN!  (Ian! D. Allen)      University of Waterloo



More information about the Comp.unix.wizards mailing list