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.astro/ctimes.c

    r2843 r7917  
    1616
    1717  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");
    1919    return (FALSE);
    2020  }
     
    3535      free (Variable);
    3636    } else {
    37       fprintf (stderr, "time: %s\n", date);
     37      gprint (GP_ERR, "time: %s\n", date);
    3838    }
    3939
     
    4444
    4545    if (strcmp (argv[1], "-abs")) {
    46       fprintf (stderr, "syntax error\n");
     46      gprint (GP_ERR, "syntax error\n");
    4747      return (FALSE);
    4848    }
    4949
    5050    if (!str_to_time (argv[2], &time)) {
    51       fprintf (stderr, "syntax error\n");
     51      gprint (GP_ERR, "syntax error\n");
    5252      return (FALSE);
    5353    }
     
    6060      return (TRUE);
    6161    }
    62     fprintf (stderr, "time: %f\n", value);
     62    gprint (GP_ERR, "time: %f\n", value);
    6363    return (TRUE);
    6464  }
Note: See TracChangeset for help on using the changeset viewer.