Message-ID: <3830CB40.79BAB916@home.com> From: Robin Johnson Organization: Orbit Computers X-Mailer: Mozilla 4.5 [en]C-AtHome0405 (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Bit mapped fields? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 26 Date: Tue, 16 Nov 1999 03:10:44 GMT NNTP-Posting-Host: 24.113.36.103 X-Complaints-To: abuse AT home DOT net X-Trace: news1.rdc1.bc.home.com 942721844 24.113.36.103 (Mon, 15 Nov 1999 19:10:44 PST) NNTP-Posting-Date: Mon, 15 Nov 1999 19:10:44 PST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi. I saw somewhere that u could assign variables to certain bits in a variable. something like: //Bit 0 of Info=active/nonactive //Bit 1-2 of Info=Mode number (0-3) stuct INFO { 0 : Active; 1,2 : Mode; } Info; This would be better than what I am currently doing, which is bitwise math to get the info that i want. -- Robin Hugh Johnson "Robbat2" "Of all deceptions, self-deception is the worst" - Plato E-Mail : robbat2 AT hotmail DOT com ICQ# : 30269588 or 41961639 Mail Files : robbat2 AT home DOT com Home Page : http://robbat2.cjb.net Time Zone : Pacific Daylight (GMT - 8)