home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / msj / msjv2_4 / quickc / usage.c < prev   
Encoding:
C/C++ Source or Header  |  1989-03-02  |  489 b   |  28 lines

  1.  
  2. /*
  3.  
  4. Figure 8
  5. ========
  6.  
  7. */
  8.  
  9. /*
  10.  * usage()
  11.  *
  12.  * DESCRIPTION: Display an informative usage message using the
  13.  *  actual program name, which may have been changed by the user.
  14.  *
  15.  * ENTRY: A pointer to the program name.
  16.  */
  17.  
  18. #include <stdio.h>
  19.  
  20. void
  21. usage(pname)
  22. char *pname;
  23. {
  24.     fprintf(stderr, "Usage: %s [-c] [-v] file ...\n", pname);
  25.     fprintf(stderr, "\t-c  Do not create any files\n");
  26.     fprintf(stderr, "\t-v  Verbose mode -- report activities\n");
  27. }
  28.