2 Copyright © 1995-2002, The AROS Development Team. All rights reserved.
5 Desc: Rexx function to wait for a packet on a port
9 #include <proto/exec.h>
10 #include <proto/rexxsyslib.h>
11 #include <proto/alib.h>
13 #include <exec/types.h>
14 #include <exec/memory.h>
15 #include <rexx/storage.h>
16 #include <rexx/errors.h>
20 #include "rexxsupport_intern.h"
23 LONG
rxsupp_getarg(struct Library
*RexxSupportBase
, struct RexxMsg
*msg
, UBYTE
**argstring
)
25 struct RexxMsg
*msg2
= *(struct RexxMsg
**)ARG1(msg
);
28 if (msg2
== NULL
|| !IsRexxMsg(msg2
))
34 if ((msg
->rm_Action
& RXARGMASK
) == 1)
39 int size
= strtoul(ARG1(msg
), &end
, 10);
40 if ((*end
!= 0) || size
<0 || size
>15)
49 *argstring
= CreateArgstring(RXARG(msg2
, arg
), LengthArgstring(RXARG(msg2
, arg
)));