New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / compiler / alib / deleteport.c
blob43609263ce705d13ecbc5b95aa0f2209cf9ec570
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: amiga.lib function DeletePort()
6 Lang: english
7 */
8 #include <proto/exec.h>
10 /*****************************************************************************
12 NAME */
13 #include <exec/ports.h>
14 #include <proto/alib.h>
16 void DeletePort (
18 /* SYNOPSIS */
19 struct MsgPort * mp)
21 /* FUNCTION
22 Free a message port created by CreatePort()
24 INPUTS
25 mp - The result of CreatePort()
27 RESULT
28 None.
30 NOTES
32 EXAMPLE
34 BUGS
36 SEE ALSO
37 CreatePort(), CreateMsgPort(), DeleteMsgPort()
39 INTERNALS
41 HISTORY
43 ******************************************************************************/
45 AROS_GET_SYSBASE_OK
46 if (mp->mp_Node.ln_Name)
47 RemPort (mp);
49 DeleteMsgPort (mp);
50 } /* DeletePort */