From: Jakub Narębski Date: Tue, 12 Nov 2013 14:44:33 GMT Subject: Re: htonll, ntohll Message-ID: <52823ED1.1020306@gmail.com> In-Reply-To: <52783518.1030908@ramsay1.demon.co.uk> W dniu 2013-11-05 01:00, Ramsay Jones pisze: > [Note: I have never particularly liked htons, htonl et.al., so adding > these htonll/ntohll functions doesn't thrill me! :-D For example see > this post[1], which echo's my sentiments exactly.] > > HTH > > ATB, > Ramsay Jones > > [1] http://commandcenter.blogspot.co.uk/2012/04/byte-order-fallacy.html Errr... htonl is about host to network order, and not about big- or little-endianness of architecture. The macros are good, its their implementation that might fail [1]. -- Jakub Narębski