To: | |
---|---|
Subject: | Re: [ts-7000] size and byte order of ints |
From: | "Don W. Carr" <> |
Date: | Wed, 13 Sep 2006 12:48:53 -0500 |
If you are writing C/C++ code, you should always use these functions: htonl, htons, ntohl, ntohs On machines that do not need to switch the bytes, they do nothing. See here for a long discussion, and even a program to determine if a system is big-endian or little-endian http://www.answers.com/topic/endianness On the question of 64 bit integers, does anybody know if there is a standard routine to convert to network byte order? Don. On 9/13/06, Yan Seiner <> wrote:
|
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [ts-7000] Re: Thoughts on the new TS-7400 board, Don W. Carr |
---|---|
Next by Date: | Re: [ts-7000] size and byte order of ints, Mike Magee |
Previous by Thread: | [ts-7000] size and byte order of ints, Yan Seiner |
Next by Thread: | Re: [ts-7000] size and byte order of ints, Mike Magee |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU