Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!agate!saturn!ssyx.ucsc.edu!koreth From: koreth@ssyx.ucsc.edu (Steven Grimm) Newsgroups: comp.unix.questions Subject: Bitfields in Sun C Message-ID: <2339@saturn.ucsc.edu> Date: 12 Mar 88 00:30:06 GMT Sender: usenet@saturn.ucsc.edu Reply-To: koreth@ssyx.ucsc.edu (Steven Grimm) Organization: The American Redundancy Society of America Lines: 18 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@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!------------+