Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ntohl
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x86 #include <winsock2.h> #include <stdio.h> int main() { char* addr[] = {"35.55.106.189", "35.105.106.189"}; if (ntohl(inet_addr(addr[0])) < ntohl(inet_addr(addr[1]))) { printf("%s < %s\n", addr[0], addr[1]); } else { printf("!(%s < %s)\n", addr[0], addr[1]); } }
run
|
edit
|
history
|
help
0
MSVC14 <exception> header
Eight Queen
Hello World
Wide string to lowercase
unordered map broken msvc
Wide string conversion with multibyte chars and locale + concatenation
SO typeindex pretty_name
Thing
Struct packing
Project