X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2Fgethost.c;h=c269def1e9c3187503398433140201c00c0bd59f;hp=3912dd4015cad2bc74b15332bf85d4f455c324cb;hb=26f7a8bb19c6cb198c213757a97b6ac79e40db4b;hpb=e7c1eaebbc012ee182a8d82fc75968969549821d diff --git a/sources/gethost.c b/sources/gethost.c index 3912dd4..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.1 2002/08/27 16:05:04 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;