home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / macutils.lzh / MACUTILS / HEXBIN / printhdr.c < prev    next >
C/C++ Source or Header  |  1996-02-01  |  925b  |  47 lines

  1. #include "printhdr.h"
  2. #include "globals.h"
  3.  
  4. /* print out header information in human-readable format */
  5. void print_header0(skip)
  6. int skip;
  7. {
  8.     if(listmode) {
  9.     (void)fprintf(stderr, "name=\"%s\", ", trname);
  10.     if(skip) {
  11.         (void)fprintf(stderr, "\n");
  12.     }
  13.     }
  14. }
  15.  
  16. /* print out header information in human-readable format */
  17. void print_header1(skip1, skip2)
  18. int skip1, skip2;
  19. {
  20.     char ftype[5], fauth[5];
  21.  
  22.     transname(mh.m_type, ftype, 4);
  23.     transname(mh.m_author, fauth, 4);
  24.     if(listmode) {
  25.     if(skip1) {
  26.         (void)fprintf(stderr, "\t");
  27.     }
  28.     (void)fprintf(stderr, "type=%4.4s, author=%4.4s, ", ftype, fauth);
  29.     if(skip2) {
  30.         (void)fprintf(stderr, "\n");
  31.     }
  32.     }
  33. }
  34.  
  35. /* print out header information in human-readable format */
  36. void print_header2(skip)
  37. {
  38.     if(listmode) {
  39.     if(skip) {
  40.         (void)fprintf(stderr, "\t");
  41.     }
  42.     (void)fprintf(stderr, "data=%ld, rsrc=%ld\n",
  43.         mh.m_datalen, mh.m_rsrclen);
  44.     }
  45. }
  46.  
  47.