home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / compiler / alib / deleteport.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-27  |  816 b   |  51 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: deleteport.c,v 1.3 1997/01/27 00:16:36 ldp Exp $
  4.  
  5.     Desc: amiga.lib function DeletePort()
  6.     Lang: english
  7. */
  8. #include <proto/exec.h>
  9.  
  10. /*****************************************************************************
  11.  
  12.     NAME */
  13. #include <exec/ports.h>
  14. #include <proto/alib.h>
  15.  
  16.     void DeletePort (
  17.  
  18. /*  SYNOPSIS */
  19.     struct MsgPort * mp)
  20.  
  21. /*  FUNCTION
  22.     Free a message port created by CreatePort()
  23.  
  24.     INPUTS
  25.     mp - The result of CreatePort()
  26.  
  27.     RESULT
  28.     None.
  29.  
  30.     NOTES
  31.  
  32.     EXAMPLE
  33.  
  34.     BUGS
  35.  
  36.     SEE ALSO
  37.     CreatePort(), CreateMsgPort(), DeleteMsgPort()
  38.  
  39.     INTERNALS
  40.  
  41.     HISTORY
  42.  
  43. ******************************************************************************/
  44. {
  45.     if (mp->mp_Node.ln_Name)
  46.     RemPort (mp);
  47.  
  48.     DeleteMsgPort (mp);
  49. } /* DeletePort */
  50.  
  51.