home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / c / hce.lha / HCE / LibSource / AmigaLib / EXTRAS / Source / DeleteExtIO.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-02  |  356 b   |  16 lines

  1. #include <exec/types.h>
  2. #include <exec/memory.h>
  3. #include <exec/io.h>
  4. #include <exec/ports.h>
  5.  
  6. void DeleteExtIO(ioExt)
  7. struct IORequest *ioExt;
  8. {
  9.     ioExt->io_Message.mn_Node.ln_Type = -1;
  10.     ioExt->io_Message.mn_ReplyPort = (struct MsgPort *) -1;
  11.     ioExt->io_Device = (struct Device *) -1;
  12.  
  13.     FreeMem (ioExt, (ULONG)ioExt->io_Message.mn_Length);
  14. }
  15.  
  16.