| delorie.com/archives/browse.cgi | search |
| From: | Leon AT caresystems DOT com DOT au |
| To: | djgpp AT delorie DOT com |
| Date: | Thu, 29 Jun 2000 14:42:57 +1000 |
| MIME-Version: | 1.0 |
| Subject: | Re: Bits |
| Message-ID: | <395B6071.19052.12454BB@localhost> |
| In-reply-to: | <nthllso95u8mkou0d408tn54000lmk7ip2@4ax.com> |
| X-mailer: | Pegasus Mail for Win32 (v3.12c) |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
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. With best regards - Leon.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |