X-Git-Url: https://gapil.gnulinux.it/gitweb/?a=blobdiff_plain;f=listati%2Fmygethost.c;h=6587e6b1a1505466f5cb10abaa0bc10a058fc0d4;hb=bea2fb49cde45c3841bffac4769d095c82a1c40e;hp=0378058f686fe4c03c61512046416f3350898b37;hpb=4c6bdffb5a1a4746b241d8323faaf3a49a4633a9;p=gapil.git diff --git a/listati/mygethost.c b/listati/mygethost.c index 0378058..6587e6b 100644 --- a/listati/mygethost.c +++ b/listati/mygethost.c @@ -9,10 +9,14 @@ int main(int argc, char *argv[]) char *addr; char buffer[INET6_ADDRSTRLEN]; ... + /* + * Main Body + */ if ((argc - optind) != 1) { printf("Wrong number of arguments %d\n", argc - optind); usage(); } + /* get resolution */ data = gethostbyname(argv[1]); if (data == NULL) { herror("Errore di risoluzione");