| www.delorie.com/archives/browse.cgi | search |
| 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" <eliz AT gnu DOT org> |
| 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> |
| X-Mailer: | emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 |
| In-reply-to: | <fi3qs05k7quvrsordlba97rkmdkvrputca@4ax.com> (message from |
| Radical NetSurfer on Sat, 25 Dec 2004 02:11:42 -0500) | |
| Subject: | Re: MAJOR PAIN: Reading Integers! |
| References: | <fi3qs05k7quvrsordlba97rkmdkvrputca AT 4ax DOT com> |
| 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 |
> From: Radical NetSurfer <RadSurfer AT yahoo DOT com> > 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.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |