Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / rexxsyslib / clearrexxmsg.c
blob6229f701975a93ef8a641172c13595a91f17de79
1 /*
2 Copyright © 1995-2002, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include "rexxsyslib_intern.h"
10 /*****************************************************************************
12 NAME */
13 #include <clib/rexxsyslib_protos.h>
15 AROS_LH2(VOID, ClearRexxMsg,
17 /* SYNOPSIS */
18 AROS_LHA(struct RexxMsg *, msgptr, A0),
19 AROS_LHA(ULONG , count , D0),
21 /* LOCATION */
22 struct Library *, RexxSysBase, 26, RexxSys)
24 /* FUNCTION
25 This function will clear a specified number of arguments by calling
26 DeleteArgstring on them.
28 INPUTS
29 msgptr - RexxMsg to clear the arguments from
30 count - The number of arguments in the message to clear
32 RESULT
33 void
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
42 FillRexxMsg(), DeleteArgstring()
44 INTERNALS
47 *****************************************************************************/
49 AROS_LIBFUNC_INIT
51 ULONG i;
53 for (i = 0; i < count; i++)
55 if (msgptr->rm_Args[i] != 0)
57 DeleteArgstring(RXARG(msgptr,i));
58 msgptr->rm_Args[i] = 0;
62 ReturnVoid("ClearRexxMsg");
63 AROS_LIBFUNC_EXIT
64 } /* ClearRexxMsg */