home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / libnix-0.8-src.lha / libnix-0.8 / sources / amiga / misc / FreeIEvents.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-12  |  334 b   |  19 lines

  1. #include <devices/inputevent.h>
  2. #ifdef __GNUC__
  3. #include <inline/exec.h>
  4. #else
  5. #include <clib/exec_protos.h>
  6. #endif
  7.  
  8. void FreeIEvents(volatile struct InputEvent *events)
  9. {
  10.   struct InputEvent *next;
  11.  
  12.   while(events!=NULL)
  13.   {
  14.     next=events->ie_NextEvent;
  15.     FreeMem((APTR)events,sizeof(struct InputEvent));
  16.     events=next;
  17.   }
  18. }
  19.