Seconda parte della risistemazione delle dichiarazioni di inclusione.
[gapil.git] / sources / gethost.c
index e949713cb54d80ca6259f5bd4860129f381e0ed8..c269def1e9c3187503398433140201c00c0bd59f 100644 (file)
@@ -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
 #include <string.h>      /* C strings library */
 #include <sys/types.h>   /* primitive system data types */
 #include <sys/socket.h>  /* socket constants, types and functions */
-#include <netdb.h>
+#include <netdb.h>       /* 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;