Correzioni varie, completati semafori POSIX e documentata {{{ppoll}}}.
[gapil.git] / sources / getparam.c
index 54212e35b386e7c31c807f54f3963673f42e879e..6410bb572e60fc27e63c9ff52b2a82b36f7fa2cd 100644 (file)
 /****************************************************************
  *
  * Program getparam.c: 
- * Program to test function fopen
+ * Program to read system parameters
  *
  * Author: Simone Piccardi
  * Jan. 2002
  *
  * Usage: getparam -h give all info's
  *
- * $Id: getparam.c,v 1.1 2002/01/03 23:44:14 piccardi Exp $
+ * $Id: getparam.c,v 1.3 2003/05/02 09:55:14 piccardi Exp $
  *
  ****************************************************************/
 /* 
@@ -110,10 +110,11 @@ int defined[]={
     0,
 #endif
 #ifdef  SSIZE_MAX
-    1
+    1,
 #else
 #define SSIZE_MAX             -1
     0
+#endif
 };
 
 
@@ -169,7 +170,6 @@ int main(int argc, char *argv[])
      *               Main code beginning
      * 
      * ***********************************************************/
-    /* There must be 2 remaing parameters */
     if ( (argc-optind) != 1 )  {
        printf("From %d arguments, removed %d options\n", argc, optind);
        usage();
@@ -184,9 +184,9 @@ int main(int argc, char *argv[])
  * routine to print usage info and exit
  */
 void usage(void) {
-    printf("Program testfopen : test fopen for a file  \n");
+    printf("Program getparam : test fopen for a file  \n");
     printf("Usage:\n");
-    printf("  testfopen [-h] file mode \n");
+    printf("  getparam [-h] parameter \n");
     printf("  -h          print this help\n");
     
     exit(1);