Aggiornamento note copyright
[gapil.git] / sources / getparam.c
index 6410bb572e60fc27e63c9ff52b2a82b36f7fa2cd..b5207b7188e185267acf8e79500bd942a6932cb1 100644 (file)
@@ -26,8 +26,6 @@
  *
  * Usage: getparam -h give all info's
  *
- * $Id: getparam.c,v 1.3 2003/05/02 09:55:14 piccardi Exp $
- *
  ****************************************************************/
 /* 
  * Include needed headers
 #include <errno.h>       /* error definitions and routines */ 
 #include <stdlib.h>      /* C standard library */
 #include <unistd.h>      /* unix standard library */
-#include <string.h>      /* string functions */
-#include <limits.h>
-#include <stdio.h>
-
+#include <string.h>      /* C strings library */
+#include <limits.h>      /* system limits constants, types and functions */
+#include <stdio.h>      /* standard I/O library */
+#include <time.h>        /* date and time constants, types and functions */
 
-#include <time.h>        /* for CLK_TCK e CLOCKS_PER_SEC */
 
 /* Table of constants for sysconf() */
 char *sc_names[]={"_SC_ARG_MAX",
@@ -175,8 +172,8 @@ int main(int argc, char *argv[])
        usage();
     }
     for (i=0; i<=4; i++) {
-       printf("Response for %s is %ld, values is %ld\n", names[i], 
-              sysconf(argument[i]), values[i]);
+       printf("Response for %s is %ld, values is %ld\n",sc_names[i], 
+              sysconf(sc_argument[i]), values[i]);
     }
     return 0;
 }