delorie.com/archives/browse.cgi | search |
Message-ID: | <38E105BC.E528B7F0@corel.com> |
Date: | Tue, 28 Mar 2000 14:19:24 -0500 |
From: | Jonathan Meunier <jonathanm AT corel DOT com> |
X-Mailer: | Mozilla 4.7 [en] (Win95; U) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: help with a bit stream.... |
References: | <38E0FCF9 DOT AB82C211 AT gtcom DOT net> <38E1019E DOT B5E2F47C AT corel DOT com> |
NNTP-Posting-Host: | 120.150.3.42 |
X-Trace: | 28 Mar 2000 14:18:30 -0500, 120.150.3.42 |
Lines: | 14 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
err, the read_bit() function should return: return (( byte_to_process >> which_bit ) & 1 ); And which_bit should be between 0 and 7.. .(Trancelucid). . Jaune . Jonathan Meunier wrote: > > BYTE read_bit( BYTE byte_to_process, BYTE which_bit ) > { > return ( byte_to_process & ( 1 << which_bit ); > }
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |