#ifdef _WIN32
#pragma comment(lib, "ws2_32.lib")
#include <WinSock2.h>
#else
#include <arpa/inet.h>
#endif
#include <stdio.h>
int main()
{
char str1[2] = { 0x00, 0x06 };
char str2[2] = { 0x04, 0xD2 };
int result;
result = ntohs(*(u_short*)str1);
result = ntohs(*(u_short*)str2);
return 0;
}
I2lmZGVmIF9XSU4zMgojcHJhZ21hIGNvbW1lbnQobGliLCAid3MyXzMyLmxpYiIpCiNpbmNsdWRlIDxXaW5Tb2NrMi5oPgojZWxzZQojaW5jbHVkZSA8YXJwYS9pbmV0Lmg+CiNlbmRpZgoKI2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpCnsKCWNoYXIgc3RyMVsyXSA9IHsgMHgwMCwgMHgwNiB9OwoJY2hhciBzdHIyWzJdID0geyAweDA0LCAweEQyIH07CglpbnQgcmVzdWx0OwoKCXJlc3VsdCA9IG50b2hzKCoodV9zaG9ydCopc3RyMSk7CglwcmludGYoIiVkXG4iLCByZXN1bHQpOwoJcmVzdWx0ID0gbnRvaHMoKih1X3Nob3J0KilzdHIyKTsKCXByaW50ZigiJWRcbiIsIHJlc3VsdCk7CglyZXR1cm4gMDsKfQo=