From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Bits Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <395B6071 DOT 19052 DOT 12454BB AT localhost> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 28 X-Trace: /KHlxMRt+u0w/oBGVAFuBAuZlJHLJCCS2Q64DFvgTGBBOZGBriuwGTNQ6i1dS+9uuX5PyFM0nD5G!TLY4eBsFw9Ck6wMAM0G/my4qAJFZQZEQ0q+pPTUWSQs+JUtVGfsaE7UgaZJZWjNCToz4ntp9NnAJ!UTFV X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Fri, 30 Jun 2000 20:23:45 GMT Distribution: world Date: Fri, 30 Jun 2000 20:23:45 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Thu, 29 Jun 2000 14:42:57 +1000, Leon AT caresystems DOT com DOT au wrote: >On 29 Jun 2000, at 3:56, Sean Proctor wrote: > >> ch; char bits1 = ch >> 7; >> >> I believe that works... >> > >only on systems where 1 byte=8 bits (not >always indeed) >the C strandard guarantees the sizeof(char) be >always 1 byte >BUT there is no C strandard to guarantee that 1 >byte is always made up from 8 bits. Newsgroup: comp.os.msdos.djgpp I don't know of any target platform DJGPP supports that has a byte size other than 8 bits. If you want a portable answer, head on over to comp.lang.c++ -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/