home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / tc-book.zip / EXEC.C < prev    next >
Text File  |  1987-08-20  |  795b  |  41 lines

  1. /* ----------- exec.c --------- */
  2. #include <stdio.h>
  3. #include "twindow.h"
  4. /*   ------ local prototypes --------  */
  5. void testmove(void);
  6. void promote(void);
  7. void ccolor(void);
  8. void fasttest(void);
  9. void notepad(void);
  10. void ordent(void);
  11. void poems(void);
  12. void maxims(void);
  13. /* ---------- menu tables --------- */
  14. char *dselcs[] = {
  15.     " move ",
  16.     " promote ",
  17.     " colors ",
  18.     " fast ",
  19.     NULL
  20. };
  21. char *pselcs[] = {
  22.     " notepad ",
  23.     " orders ",
  24.     " poetry ",
  25.     " sayings ",
  26.     NULL
  27. };
  28. static void (*dfuncs[])()={testmove,promote,ccolor,fasttest};
  29. static void (*pfuncs[])()={notepad,ordent,poems,maxims};
  30. static MENU tmn [] = {
  31.     {" demos ",     dselcs, dfuncs},
  32.     {" programs ",    pselcs, pfuncs},
  33.     {NULL,NULL,NULL}
  34. };
  35.  
  36. void exec()
  37. {
  38.     menu_select(" TC Executive ", tmn);
  39. }
  40.  
  41.