3 #define C(n) switch(n){case n:;}
4 #define I(t,e) {t x[sizeof(t)==sizeof(e)] = {e};}
17 I(uint32_t, htonl(0LL))
19 {uint32_t(*p)(uint32_t) = htonl;}
22 I(uint16_t, htons(0LL))
24 {uint16_t(*p)(uint16_t) = htons;}
27 I(uint32_t, ntohl(0LL))
29 {uint32_t(*p)(uint32_t) = ntohl;}
32 I(uint16_t, ntohs(0LL))
34 {uint16_t(*p)(uint16_t) = ntohs;}
37 {in_addr_t(*p)(const char*) = inet_addr;}
38 {char*(*p)(struct in_addr) = inet_ntoa;}
39 {const char*(*p)(int,const void*restrict,char*restrict,socklen_t) = inet_ntop;}
40 {int(*p)(int,const char*restrict,void*restrict) = inet_pton;}