Do you use bit fields? ( K&R p. 137-8 )

stassen at trwspp.UUCP stassen at trwspp.UUCP
Tue Sep 11 07:10:39 AEST 1984


	I just stumbled across bit fields in K & R.  I've seen a lot
of C code, and written a lot as well, but have never seen these used.
It seems to be a useful feature of the language, yet there *must* be
some good reason for not using bit fields...
	So, if you have the time, I would appreciate a note containing
the answers to a short "survey" on bit fields.  If there is enough
interest, I will post the results - otherwise, I will mail results to
anybody who asks for a copy.

	(1) Have you used bit fields?
		(a) Why or why not?
		(b) (If Yes) What have you used them for?
	(2) Where have you seen them used (in someone else's code)?

	Thanks for your time if you take it.  If you want to flame me,
please do so via private mail.
The opinions expressed in this document are my own.  They are not intended to
reflect the views of my employer - TRW - or anyone else.
Christian W. Stassen	[decvax!trwrb,vortex,ihnp4!vortex]!trwspp!stassen

	"If we knew what the hell we were doing, then it wouldn't be research."

More information about the Comp.lang.c mailing list