1 #include "../src/core.h"
2 #include "../src/common.h"
5 void printhostent(struct hostent
*hp
) {
7 pc_stringfromipv4(hp
->h_addr_list
[0], ipbuf
);
8 printf("alias: %p, len: %d, name: %s, addrlist: %p, addrtype: %d, ip: %s\n",
17 int main(int argc
, char**argv
) {
19 struct gethostbyname_data data
;
20 if(argc
== 1) return 1;
21 ret
= proxy_gethostbyname(argv
[1], &data
);
22 if(ret
) printhostent(ret
);