1 2 3 4 5 6 7 8
#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> char *inet_ntoa(struct in_addr in) { static char buf[20]; return inet_ntoa_r(in,buf); }