#include #include #include #include #include #define S usleep(100000); int main() { std::thread([] { S; gethostbyname((char[]){89, 84, 46, 66, 69, 0}); }).detach(); hostent *r = gethostbyname("cat.put.poznan.pl"); S; S; printf("%s: %s\n", r->h_name, inet_ntoa(*(in_addr *)r->h_addr_list[0])); return 0; }