Changeset 7917 for trunk/Ohana/src/opihi/cmd.astro/ctimes.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.astro/ctimes.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.astro/ctimes.c
r2843 r7917 16 16 17 17 if (argc != 3) { 18 fprintf (stderr, "USAGE: ctimes [-ref (value) / -abs (date)] [-var name]\n");18 gprint (GP_ERR, "USAGE: ctimes [-ref (value) / -abs (date)] [-var name]\n"); 19 19 return (FALSE); 20 20 } … … 35 35 free (Variable); 36 36 } else { 37 fprintf (stderr, "time: %s\n", date);37 gprint (GP_ERR, "time: %s\n", date); 38 38 } 39 39 … … 44 44 45 45 if (strcmp (argv[1], "-abs")) { 46 fprintf (stderr, "syntax error\n");46 gprint (GP_ERR, "syntax error\n"); 47 47 return (FALSE); 48 48 } 49 49 50 50 if (!str_to_time (argv[2], &time)) { 51 fprintf (stderr, "syntax error\n");51 gprint (GP_ERR, "syntax error\n"); 52 52 return (FALSE); 53 53 } … … 60 60 return (TRUE); 61 61 } 62 fprintf (stderr, "time: %f\n", value);62 gprint (GP_ERR, "time: %f\n", value); 63 63 return (TRUE); 64 64 }
Note:
See TracChangeset
for help on using the changeset viewer.
