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/csystem.c

    r2598 r7917  
    1313   
    1414  if (argc != 5) {
    15     fprintf (stderr, "USAGE: csystems [C/G/E/H] [C/G/E/H] X Y\n");
     15    gprint (GP_ERR, "USAGE: csystems [C/G/E/H] [C/G/E/H] X Y\n");
    1616    return (FALSE);
    1717  }
     
    2222    switch (argv[2][0]) {
    2323    case 'C':
    24       fprintf (stderr, "same coordinate system\n");
     24      gprint (GP_ERR, "same coordinate system\n");
    2525      return (TRUE);
    2626      break;
     
    5151      break;
    5252    case 'G':
    53       fprintf (stderr, "error: conversions between galactic and ecliptic not implemented\n");
     53      gprint (GP_ERR, "error: conversions between galactic and ecliptic not implemented\n");
    5454      return (FALSE);
    5555      phi = -62.6*RAD_DEG;
     
    7373      break;
    7474    case 'E':
    75       fprintf (stderr, "error: conversions between galactic and ecliptic not implemented\n");
     75      gprint (GP_ERR, "error: conversions between galactic and ecliptic not implemented\n");
    7676      return (FALSE);
    7777      gettimeofday (&now, (struct timezone *) NULL);
     
    9191
    9292  if (xvec[0].Nelements != yvec[0].Nelements) {
    93     fprintf (stderr, "vectors %s and %s not the same length\n", argv[3], argv[4]);
     93    gprint (GP_ERR, "vectors %s and %s not the same length\n", argv[3], argv[4]);
    9494    return (FALSE);
    9595  }
Note: See TracChangeset for help on using the changeset viewer.