/netbyte

Primary LanguageCMIT LicenseMIT

netbyte

Converts command line arguments through ntohl() and htonl().

To build issue autoreconf -i && ./configure && make

Sample output on an intel (little-endian) architecture:

$ ./netbyte 3000
         unsigned      signed
 orig:       3000        3000
ntohl: 3087728640 -1207238656
htonl: 3087728640 -1207238656