Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site trwspp.UUCP Path: utzoo!linus!decvax!ittvax!dcdwest!sdcsvax!sdcrdcf!trwrb!trwspp!stassen From: stassen@trwspp.UUCP Newsgroups: net.lang.c,net.unix-wizards Subject: Do you use bit fields? ( K&R p. 137-8 ) Message-ID: <569@trwspp.UUCP> Date: Mon, 10-Sep-84 17:10:39 EDT Article-I.D.: trwspp.569 Posted: Mon Sep 10 17:10:39 1984 Date-Received: Sun, 16-Sep-84 09:37:57 EDT Organization: T R W, Redondo Beach, CA Lines: 25 [] 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."