Writing C readable bitfield structs?

phark52 at yahoo.com phark52 at yahoo.com
Wed Mar 16 11:31:33 EST 2005


How would I go about writing a bitfield that can be read by my C app? I
want to pack a few bools into one int.

I know an extended module exists (npstruct) which helps you do this but
I want to do it manually or using one of the standard modules.




More information about the Python-list mailing list