home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_11_04 / 1104036a < prev    next >
Text File  |  1992-12-15  |  1KB  |  113 lines

  1. /*
  2.   listing 6 - funcs.c
  3. */
  4.  
  5. #include <stdio.h>
  6. #include "curses.h"
  7. #ifdef BCC
  8. #include <dos.h>
  9. #endif
  10. #include "menu.h"
  11. #include "internal.h"
  12.  
  13. /* 
  14.    all these functions are shells
  15.    except for c_exit & c_version
  16. */
  17.  
  18. int c_open()
  19. {
  20.  
  21.     to_dialogue("open");
  22.  
  23.     sleep(3);
  24.  
  25.         return;
  26. }
  27.  
  28. int c_close()
  29. {
  30.     to_dialogue("close");
  31.     sleep(3);
  32.  
  33.     return;
  34. }
  35.  
  36. int c_exit()
  37. {
  38.     to_dialogue("exit");
  39.     clean_up();
  40.  
  41.     return;
  42.  
  43. }
  44.  
  45. int c_copy()
  46. {
  47.     to_dialogue("copy");
  48.     sleep(3);
  49.  
  50.     return;
  51. }
  52.  
  53. int c_paste()
  54. {
  55.     to_dialogue("paste");
  56.     sleep(3);
  57.  
  58.     return;
  59. }
  60.  
  61. int c_delete()
  62. {
  63.     to_dialogue("delete");
  64.     sleep(3);
  65.  
  66.     return;
  67. }
  68.  
  69. int c_move()
  70. {
  71.     to_dialogue("move");
  72.     sleep(3);
  73.  
  74.     return;
  75.  
  76. }
  77.  
  78. int c_compile()
  79. {
  80.     to_dialogue("compile");
  81.     sleep(3);
  82.  
  83.     return;
  84.  
  85. }
  86.  
  87. int c_link()
  88. {
  89.     to_dialogue("link");
  90.     sleep(3);
  91.  
  92.     return;
  93.  
  94. }
  95.  
  96. int c_run()
  97. {
  98.     to_dialogue("run");
  99.     sleep(3);
  100.  
  101.     return;
  102. }
  103.  
  104. int c_version()
  105. {
  106.  
  107.     to_dialogue("Version 3.0");
  108.     sleep(3);
  109.  
  110.     return;
  111.  
  112. }
  113.