home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / dev / gcc / libnixV0_8.lha / gnu / libnix-sources.lha / 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.