Changeset 7917 for trunk/Ohana/src/opihi/cmd.data/list_header.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/list_header.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/list_header.c
r7080 r7917 18 18 19 19 if (argc != 2) { 20 fprintf (stderr, "USAGE: header <buffer> [-w filename]\n");20 gprint (GP_ERR, "USAGE: header <buffer> [-w filename]\n"); 21 21 return (FALSE); 22 22 } … … 27 27 f = fopen (filename, "r"); 28 28 if (f == (FILE *) NULL) { 29 fprintf (stderr, "file %s not found\n", filename);29 gprint (GP_ERR, "file %s not found\n", filename); 30 30 return (FALSE); 31 31 } … … 67 67 Nbytes = fwrite (p, sizeof(char), nbytes, f); 68 68 if (Nbytes != nbytes) { 69 fprintf (stderr, "warning: not all printed...\n");69 gprint (GP_ERR, "warning: not all printed...\n"); 70 70 } 71 71 free (p); … … 78 78 79 79 } 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.
