> On 18 Oct 2013, at 05:51, Joe Pfeiffer <pfeif...@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. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/3a8d4295-5576-40c4-b1cb-8e17ca4f8...@debian.org