home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / DESQC21.ZIP / DESQLOOP.C < prev    next >
Text File  |  1989-07-06  |  1KB  |  27 lines

  1. /*==========================================================================*\
  2. | DESQLOOP.C                                               ver 2.1, 07-06-89 |
  3. |                                                                            |
  4. | Idle loop for a DESQview window                                            |
  5. |                                                                            |
  6. | Run this in DESQview windows 1 and 2 before running DESQDEMO.C or          |
  7. | DESQQWIK.C.  This simply gives other window(s) something to do             |
  8. | visually so that you can see them stop during the critical test.           |
  9. |                                                                            |
  10. \*==========================================================================*/
  11.  
  12. #include <stdio.h>
  13. #include <conio.h>
  14.  
  15. int i=0;
  16.  
  17. main()
  18. {
  19. #ifdef __TURBOC__
  20.     directvideo=0;
  21. #endif
  22.     while (!kbhit()) printf( "i = %d\n", i++ );
  23.     while (kbhit()) getch();        /* clear kbd buffer */
  24.  
  25.     return;
  26. }
  27.