[aklug] Bit field portability

From: Christopher Howard <choward@indicium.us>
Date: Tue Mar 10 2009 - 14:25:49 AKDT

Portability question: I want to use bit fields in one part of my C program
for flags because it is more convenient than shifting/masking. However,
this online doc I'm reading indicates that bit fields can make programs
less portable.

This isn't really an issue in my case is it, since I 1) am not sending the
  across systems, nor 2) sending the packed struct across systems, and 3)
I'll only be using a six or seven 1 bit fields in the struct?

Am I seeing this right, or is there something I'm overlooking here? Packed
structs seemed really convenient.

-- 
Christopher Howard
http://indicium.us
http://theologia.indicium.us
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Tue Mar 10 14:32:55 2009

This archive was generated by hypermail 2.1.8 : Tue Mar 10 2009 - 14:32:55 AKDT