Correzioni rimaste indietro ed espansione funzioni del resolver.
[gapil.git] / listati / mygethost.c
index 0378058f686fe4c03c61512046416f3350898b37..6587e6b1a1505466f5cb10abaa0bc10a058fc0d4 100644 (file)
@@ -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");