home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / PROCWRKB.ZIP / BENCH1.ZIP / HELP / HELPMSG.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-07  |  752 b   |  30 lines

  1. /* ==( bench/helpmsg.c )== */
  2. /* ----------------------------------------------- */
  3. /* Pro-C  Copyright (C) 1988 - 1990 Vestronix Inc. */
  4. /* Modification to this source is not supported    */
  5. /* by Vestronix Inc.                               */
  6. /*            All Rights Reserved                  */
  7. /* ----------------------------------------------- */
  8. /* Written   RN   15-Jan-90                        */
  9. /* ----------------------------------------------- */
  10. /* %W%  (%H% %T%) */
  11.  
  12. # include <stdio.h>
  13. # include <bench.h>
  14.  
  15. PROTO (void (*help_func), (int)) = (void (*)())0;
  16.  
  17. /*
  18. * call help (if defined)
  19. */
  20. void help_msg(hnum)
  21. int hnum;
  22. {
  23.     if (hnum < 0)
  24.         return;
  25.  
  26.     if (help_func != (void (*)())0)
  27.         (*help_func)(hnum);
  28. }
  29.  
  30.