add comment, and only convert the string if necessary
[AROS.git] / compiler / alib / deleteport.c
blob5f9c0187c9341564bac4c41126a544970c5174bb
1 /*
2 Copyright © 1995-2007, 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(), exec.library/CreateMsgPort(), exec.library/DeleteMsgPort()
39 INTERNALS
41 HISTORY
43 ******************************************************************************/
45 if (mp->mp_Node.ln_Name)
46 RemPort (mp);
48 DeleteMsgPort (mp);
49 } /* DeletePort */