X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2Fgetparam.c;h=b5207b7188e185267acf8e79500bd942a6932cb1;hp=6410bb572e60fc27e63c9ff52b2a82b36f7fa2cd;hb=HEAD;hpb=74c66811fb64b02f6c9228e885717ba52ac3a934 diff --git a/sources/getparam.c b/sources/getparam.c index 6410bb5..b5207b7 100644 --- a/sources/getparam.c +++ b/sources/getparam.c @@ -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 @@ -36,12 +34,11 @@ #include /* error definitions and routines */ #include /* C standard library */ #include /* unix standard library */ -#include /* string functions */ -#include -#include - +#include /* C strings library */ +#include /* system limits constants, types and functions */ +#include /* standard I/O library */ +#include /* date and time constants, types and functions */ -#include /* 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; }