Changeset 7917 for trunk/Ohana/src/opihi/cmd.data/cursor.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/cursor.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/cursor.c
r7080 r7917 35 35 36 36 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"); 38 38 return (FALSE); 39 39 } … … 60 60 Z = gfits_get_matrix_value (&buf[0].matrix, (int) X, (int) Y); 61 61 } 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); 63 63 } else { 64 64 XY_to_RD (&R, &D, X, Y, &graphmode.coords); … … 67 67 sprintf (string, "D%s", key); 68 68 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); 70 70 } 71 71 if (!strcasecmp (key, "Q")) break;
Note:
See TracChangeset
for help on using the changeset viewer.
