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

    r2843 r7917  
    1818
    1919  if ((argc != 3) && (argc != 2)) {
    20     fprintf (stderr, "USAGE: sexigesimal (from) [to]\n");
     20    gprint (GP_ERR, "USAGE: sexigesimal (from) [to]\n");
    2121    return (FALSE);
    2222  }
     
    2424  if (HMS) {
    2525    if (!dms_to_ddd (&value, argv[1])) {
    26       fprintf (stderr, "syntax error in input\n");
     26      gprint (GP_ERR, "syntax error in input\n");
    2727      return (FALSE);
    2828    }
     
    3030      set_variable (argv[2], value);
    3131    } else {
    32       fprintf (GetOutfile(), "%10.6f\n", value);
     32      gprint (GP_LOG, "%10.6f\n", value);
    3333    }
    3434    return (TRUE);
     
    3939      set_str_variable (argv[2], string);
    4040    } else {
    41       fprintf (GetOutfile(), "%s\n", string);
     41      gprint (GP_LOG, "%s\n", string);
    4242    }
    4343    return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.