X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2Fgethost.c;h=c269def1e9c3187503398433140201c00c0bd59f;hp=da2a6c96cc284691bcafce3dc2a169cb74c85f36;hb=04c68576a3be5ccfda8faf2030d4cbc2997c29fa;hpb=b1ead1b930038e4f7cd6ee7f737d7ee4699a068c diff --git a/sources/gethost.c b/sources/gethost.c index da2a6c9..c269def 100644 --- a/sources/gethost.c +++ b/sources/gethost.c @@ -1,6 +1,6 @@ /* gethost.c * - * Copyright (C) 2001 Simone Piccardi + * Copyright (C) 2005 Simone Piccardi * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,8 +26,6 @@ * * Usage: gethost -h give all info's * - * $Id: gethost.c,v 1.3 2003/05/02 09:55:14 piccardi Exp $ - * ****************************************************************/ /* * Include needed headers @@ -37,19 +35,25 @@ #include /* C standard library */ #include /* unix standard library */ #include /* standard I/O library */ -#include /* string functions */ -#include -#include -#include +#include /* C strings library */ +#include /* primitive system data types */ +#include /* socket constants, types and functions */ +#include /* C resolver library */ -/* Help printing routine */ -void usage(void); -int main(int argc, char *argv[]) -{ /* - * Variables definition + * Function and globals definitions */ +void usage(void); /* Help printing routine */ + +/* + * Main program + */ +int main(int argc, char *argv[]) +{ + /* + * Variables definition + */ int i; int use = 0; struct hostent *host;