changeset 48 | b94d657a9acb |
parent 27 | 81a574d60c15 |
child 61 | 4b4c97f179da |
47:63adb261de90 | 48:b94d657a9acb |
---|---|
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 exit (0); |
22 return EXIT_FAILURE; |
23 } |
23 } |
24 |
24 |
25 he = gethostbyname (argv[1]); |
25 he = gethostbyname (argv[1]); |
26 ip = NULL; |
26 ip = NULL; |
27 |
27 |