[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: endianness (was Re: sysadmin qualifications (Re: apt-get vs. aptitude))




> On 18 Oct 2013, at 05:51, Joe Pfeiffer <pfeiffer@cs.nmsu.edu> wrote:
> 
> What's wrong with htonl and other similar functions/macroes?

They are pretty good when they fit what you want to do, but there are holes: eg convert big endian source to host layout. Note that the glibc implementation uses cpp conditionals so the previously noted drawbacks apply. There's also the endian.h routines but there are portability issues to address when using them.

Reply to: