home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / prof_c / 09print / pr_help.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-08-11  |  942 b   |  33 lines

  1. /*
  2.  *    pr_help -- display an abbreviated manual page
  3.  */
  4.  
  5. #include <stdio.h>
  6. #include <local\std.h>
  7.  
  8. void
  9. pr_help(pname)
  10. char *pname;
  11. {
  12.     static char *m_str[] = {
  13.         "The following options may be used singly or in combination:",
  14.         "-e\t set Epson-compatible mode",
  15.         "-f\t use formfeed to eject a page (default is newlines)",
  16.         "-g\t use generic printer mode",
  17.         "-h hdr\t use specified header instead of file name",
  18.         "-l len\t set page length in lines (default = 66)",
  19.         "-n\t enable line numbering (default = off)",
  20.         "-o cols\t offset from left edge in columns (default = 5)",
  21.         "-p\t preview output on screen (may be redirected)",
  22.         "-s list\t print only selected pages",
  23.         "-w cols\t line width in columns (default = 80)"
  24.     };
  25.     int i, n = sizeof (m_str)/ sizeof (char *);
  26.  
  27.     fprintf(stderr, "Usage: %s [options] file...\n\n", pname);
  28.     for (i = 0; i < n; ++i)
  29.         fprintf(stderr, "%s\n", m_str[i]);
  30.  
  31.     return;
  32. }
  33.