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

    r7080 r7917  
    3535
    3636  if ((argc != 1) && (argc != 2)) {
    37     fprintf (stderr, "USAGE: cursor [Npts] [-n window] [-g | -i]\n");
     37    gprint (GP_ERR, "USAGE: cursor [Npts] [-n window] [-g | -i]\n");
    3838    return (FALSE);
    3939  }
     
    6060        Z = gfits_get_matrix_value (&buf[0].matrix, (int) X, (int) Y);
    6161      }
    62       fprintf (GetOutfile(), "%s %f %f  %f\n", key, X, Y, Z);
     62      gprint (GP_LOG, "%s %f %f  %f\n", key, X, Y, Z);
    6363    } else {
    6464      XY_to_RD (&R, &D, X, Y, &graphmode.coords);
     
    6767      sprintf (string, "D%s", key);
    6868      set_variable (string, D);
    69       fprintf (GetOutfile(), "%s %f %f\n", key, X, Y);
     69      gprint (GP_LOG, "%s %f %f\n", key, X, Y);
    7070    }
    7171    if (!strcasecmp (key, "Q")) break;
Note: See TracChangeset for help on using the changeset viewer.