X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Sat, 25 Dec 2004 12:17:31 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-ID: <01c4ea6b$Blat.v2.2.2$1858f5a0@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 In-reply-to: (message from Radical NetSurfer on Sat, 25 Dec 2004 02:11:42 -0500) Subject: Re: MAJOR PAIN: Reading Integers! References: 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 Precedence: bulk > From: Radical NetSurfer > Date: Sat, 25 Dec 2004 02:11:42 -0500 > > abf = (unsigned long)((Buf[0] << 24) | (Buf[1] << 16) | (Buf[2] << 8) | Buf[3]); The library function `ntohl' will do this for you, with the advantage that the resulting code is portable to big-endian machines.