Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!rutgers!mcnc!rti!dg-rtp!larrybud.rtp.dg.com!goudreau From: goudreau@larrybud.rtp.dg.com (Bob Goudreau) Newsgroups: comp.lang.c Subject: Re: How to reverse bits... Message-ID: <1990Aug14.233009.20879@dg-rtp.dg.com> Date: 14 Aug 90 23:30:09 GMT References: <1990Aug13.222454.3862@craycos.com> <46356@ism780c.isc.com> Sender: usenet@dg-rtp.dg.com (Usenet Administration) Reply-To: goudreau@larrybud.rtp.dg.com (Bob Goudreau) Organization: Data General Corporation, Research Triangle Park, NC Lines: 15 In article <46356@ism780c.isc.com>, news@ism780c.isc.com (News system) writes: > > Reversing the bits in a char variable is tricky to say the least. The C > language does not specify the number of bits in a char variable. What's wrong with using CHAR_BIT, which ANSI requires to be #defined in ? ------------------------------------------------------------------------ Bob Goudreau +1 919 248 6231 Data General Corporation 62 Alexander Drive goudreau@dg-rtp.dg.com Research Triangle Park, NC 27709 ...!mcnc!rti!xyzzy!goudreau USA