Read an unsigned big-endian 16-bit integer
#include <uint16.h>
uint16 u;
void uint16_unpack_big(const char s[2],uint16 *u);
uint16 is a 16-bit unsigned integer type, normally either unsigned int or unsigned long.
uint16_unpack_big portably reads a uint16 as stored on a big-endian architecture (i.e. in network byte order) from s and writes it into u in the native byte order.