www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/31/23:31:54

Message-ID: <3521BAF7.AB240651@primary.net>
Date: Tue, 31 Mar 1998 21:56:39 -0600
From: * benz <benz AT primary DOT net>
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Help with bits!
NNTP-Posting-Host: pn5-ppp-220.primary.net
Organization: Primary Network. http://www.primary.net
Lines: 9
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

OK, I feel like a newbie, but I can't figure out how to check individual
bits in a char or int.  I heard something about a bitmask, but I'm not
sure how to use one.  I want to know this becuase I have a whole bunch
of vars that will only contain a 1 or a 0 and I figure that it would be
easier for me to have eight of these in one byte, not in eight.

Thanks
Andy

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019