home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 361_02 / tishelp.c < prev    next >
C/C++ Source or Header  |  1991-09-20  |  661b  |  31 lines

  1.  
  2. /* TisHelp.c --> Context Sensive Help via a Shell Out to VU.
  3.  *
  4.  * Author: J.Ekwall                                     13 September 91
  5.  *
  6.  * Copyrighted to the Public Domain.  Unlimited Distribution Authorized.
  7.  *
  8.  * User Assumes All Risks/Liabilities.
  9.  *
  10.  * Last Update: 13 September 91/EK
  11.  */
  12.  
  13. #include <stdio.h>
  14. #include <stdlib.h>
  15. #include <string.h>
  16. #include <stdek.h>
  17. #include <gadgets.h>
  18.  
  19. char HelpFileName[81], HelpTag[20];
  20. int HelpKey = 0;
  21.  
  22. void TisHelp(void)
  23. {
  24.     char Cmd[128];
  25.  
  26.     if (!*HelpFileName) return; Trim(HelpTag);
  27.     sprintf(Cmd, "VU /C1F301E /F \">%s\" %s", HelpTag, HelpFileName); 
  28.     system(Cmd);
  29. }
  30.  
  31.