IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 16, 2006, 10:58:49 PM (20 years ago)
Author:
eugene
Message:

major updates to use gprint for buffered / threaded printing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/sort.c

    r4689 r7917  
    88
    99  if (argc < 2) {
    10     fprintf (stderr, "USAGE: sort (vector) [vectors ...] \n");
    11     fprintf (stderr, "  first vector is sort key for others\n");
     10    gprint (GP_ERR, "USAGE: sort (vector) [vectors ...] \n");
     11    gprint (GP_ERR, "  first vector is sort key for others\n");
    1212    return (FALSE);
    1313  }
     
    2020  for (i = 0; i < Nvec; i++) {
    2121    if ((vec[i] = SelectVector (argv[i + 1], OLDVECTOR, FALSE)) == NULL) {
    22       fprintf (stderr, "USAGE: sort vector vector ...\n");
     22      gprint (GP_ERR, "USAGE: sort vector vector ...\n");
    2323      free (vec);
    2424      return (FALSE);   
     
    2929      if (Nval != vec[i][0].Nelements) {
    3030        free (vec);
    31         fprintf (stderr, "vectors must all be same length\n");
     31        gprint (GP_ERR, "vectors must all be same length\n");
    3232        return (FALSE);
    3333      }
Note: See TracChangeset for help on using the changeset viewer.