Stack crawler Stack crawler - 1 year ago 77
Linux Question

Equivalent of ENDIAN_BE16() function for Ubunu

What is the exact equivalent of the following function for Ubuntu?

Answer Source

What you need is:

#include <endian.h>

result_in_host_endianness = be16toh(my_big_endian_number)


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download