Changeset 7917 for trunk/Ohana/src/opihi/cmd.data/sort.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/sort.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/sort.c
r4689 r7917 8 8 9 9 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"); 12 12 return (FALSE); 13 13 } … … 20 20 for (i = 0; i < Nvec; i++) { 21 21 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"); 23 23 free (vec); 24 24 return (FALSE); … … 29 29 if (Nval != vec[i][0].Nelements) { 30 30 free (vec); 31 fprintf (stderr, "vectors must all be same length\n");31 gprint (GP_ERR, "vectors must all be same length\n"); 32 32 return (FALSE); 33 33 }
Note:
See TracChangeset
for help on using the changeset viewer.
