1 2 3 4 5 6 7
#include <stdlib.h> #include <netdb.h> void freeaddrinfo(struct addrinfo *p) { free(p); }