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

  1. #include <exec/types.h>
  2. #include <exec/ports.h>
  3. #include <exec/memory.h>
  4.  
  5. DeletePort (port)
  6. struct MsgPort *port;
  7. {
  8.     if (port->mp_Node.ln_Name)
  9.          RemPort (port);
  10.     port->mp_SigTask = (void *) -1;
  11.     port->mp_MsgList.lh_Head = (struct Node *) -1;
  12.     FreeSignal(port->mp_SigBit);
  13.     FreeMem (port, (ULONG)sizeof(struct MsgPort));
  14. }
  15.  
  16.