home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_11 / 8n11109a < prev    next >
Text File  |  1990-09-20  |  511b  |  19 lines

  1.  
  2.  
  3. #include <stdio.h>
  4.  
  5. #define TRUE    1
  6. #define FALSE   0
  7.  
  8. #define MAX_TIMERS      ...     /* number of timers */
  9. typedef ... TIME;               /* how time is actually stored */
  10. #define VERY_LONG_TIME  ...     /* longest time possible */
  11.  
  12. struct timer {
  13.         int inuse;              /* TRUE if in use */
  14.         TIME time;              /* relative time to wait */
  15.         char *event;            /* set to TRUE at timeout */
  16. } timers[MAX_TIMERS];           /* set of timers */
  17.  
  18. listing 1
  19.