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

    r7080 r7917  
    1818
    1919  if (argc != 2) {
    20     fprintf (stderr, "USAGE: header <buffer> [-w filename]\n");
     20    gprint (GP_ERR, "USAGE: header <buffer> [-w filename]\n");
    2121    return (FALSE);
    2222  }
     
    2727    f = fopen (filename, "r");
    2828    if (f == (FILE *) NULL) {
    29       fprintf (stderr, "file %s not found\n", filename);
     29      gprint (GP_ERR, "file %s not found\n", filename);
    3030      return (FALSE);
    3131    }
     
    6767    Nbytes = fwrite (p, sizeof(char), nbytes, f);
    6868    if (Nbytes != nbytes) {
    69       fprintf (stderr, "warning: not all printed...\n");
     69      gprint (GP_ERR, "warning: not all printed...\n");
    7070    }
    7171    free (p);
     
    7878
    7979}
     80
     81/* XXX this function is not written in the context of the output file/buffer */
Note: See TracChangeset for help on using the changeset viewer.