dnsresolve.c
changeset 61 4b4c97f179da
parent 48 b94d657a9acb
child 77 49e0babccb23
equal deleted inserted replaced
60:47c13ca8c4d0 61:4b4c97f179da
    16     char *ip;
    16     char *ip;
    17 
    17 
    18     int i = 0;
    18     int i = 0;
    19 
    19 
    20     if (argc != 2) {
    20     if (argc != 2) {
    21         fprintf (stderr, "Usage: %s hostname\n", argv[0]);
    21         fprintf (stderr, "Usage: %s <hostname>\n", argv[0]);
    22         return EXIT_FAILURE;
    22         return EXIT_FAILURE;
    23     }
    23     }
    24 
    24 
    25     he = gethostbyname (argv[1]);
    25     he = gethostbyname (argv[1]);
    26     ip = NULL;
    26     ip = NULL;