Bitfields in Sun C

Steven Grimm koreth at ssyx.ucsc.edu
Sat Mar 12 10:30:06 AEST 1988


Does anyone know how to declare a bitfield in a structure with the Sun
3.2 C compiler?  The standard

struct foo {
	unsigned apple : 1;
	unsigned orange : 1;
};

doesn't seem to work.  Are bitfields not supported?

Please reply by E-Mail if at all possible.

+New! Improved! Now 200% Artificial-+-+-----------Steven Grimm------------+
|#   #  @@@  ****  &&&&& $$$$$ %   %| | ARPA: koreth at ssyx.ucsc.edu        |
|#  #  @   @ *   * &       $   %   %+-+ UUCP: ...!ucbvax!ucscc!ssyx!koreth|
|###   @   @ ****  &&&&    $   %%%%%| |___________________________________|
|#  #  @   @ * *   &       $   %   %+-+"Things are only impossible until  |
|#   #  @@@  *  ** &&&&&   $   %   %| | they're not." - Jean-Luc Picard   |
+-----with NutraSour(TM)!  No natural colors or preservatives!------------+



More information about the Comp.unix.questions mailing list