home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / dtx9302 / ctrick / altest.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-04  |  631 b   |  29 lines

  1. /* ****************************************************** */
  2. /*                     TEST.C                             */
  3. /* ****************************************************** */
  4. #include <stdio.h>
  5. #include "globals.h"
  6. #include "alaprot.h"
  7.  
  8.  
  9. void permfunc(int id,unsigned tics)
  10. {
  11.     cprintf("Permalarm %d...\r\n",id);
  12. }
  13.  
  14. void main(void )
  15. {
  16.     perm_alarm(permfunc,17);
  17.     perm_alarm(permfunc,7);
  18.  
  19.     TimeoutOn(10*18);
  20.  
  21.     while(!timeout);
  22.  
  23.     cputs("TIMEOUT..\r\n");
  24. }
  25. /* ****************************************************** */
  26. /*                  Ende von TEST.C                       */
  27.  
  28.  
  29.