Howdy.

At 7/10/2005 21:02 -0400, Robert P. J. Day wrote:
is there a standard set of byte swap macros/functions for doing big/little endian conversion? i have no interest in re-inventing the wheel and i'm sure there's a universally-recognized set of macros for this, no?

The most common case where a programmer cares about byte-order is networking code. Thus "man 3 byteorder" says:

htonl, htons, ntohl, ntohs - convert values between host and network byte order

according to http://tinyurl.com/9c8hu which redirects to
http://linux.com.hk/PenguinWeb/manpage.jsp?name=byteorder&section=3

--
Jeff Woods <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" 
in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to