home *** CD-ROM | disk | FTP | other *** search
- /*
- (C) 1995-96 AROS - The Amiga Replacement OS
- $Id: deleteport.c,v 1.3 1997/01/27 00:16:36 ldp Exp $
-
- Desc: amiga.lib function DeletePort()
- Lang: english
- */
- #include <proto/exec.h>
-
- /*****************************************************************************
-
- NAME */
- #include <exec/ports.h>
- #include <proto/alib.h>
-
- void DeletePort (
-
- /* SYNOPSIS */
- struct MsgPort * mp)
-
- /* FUNCTION
- Free a message port created by CreatePort()
-
- INPUTS
- mp - The result of CreatePort()
-
- RESULT
- None.
-
- NOTES
-
- EXAMPLE
-
- BUGS
-
- SEE ALSO
- CreatePort(), CreateMsgPort(), DeleteMsgPort()
-
- INTERNALS
-
- HISTORY
-
- ******************************************************************************/
- {
- if (mp->mp_Node.ln_Name)
- RemPort (mp);
-
- DeleteMsgPort (mp);
- } /* DeletePort */
-
-