On Wed, 16 Jul 2014 15:51:07 +0200 FRIGN <d...@frign.de> wrote: > This is very similar to Markus Teich' approach, but be32toh is much > more favorable than ntohs, because it's clear we are converting from > big endian.
But, to be fair, ntohs is POSIX and the be_nn_toh-family isn't. Let's go for the former ;). Cheers FRIGN -- FRIGN <d...@frign.de>