2 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
5 Desc: Convert BCPL address to C pointer
9 #include <proto/exec.h>
10 #include <proto/rexxsyslib.h>
11 #include <exec/types.h>
12 #include <exec/memory.h>
13 #include <rexx/storage.h>
14 #include <rexx/errors.h>
19 #include "rexxsupport_intern.h"
20 #include "rxfunctions.h"
22 LONG
rxsupp_baddr(struct Library
*RexxSupportBase
, struct RexxMsg
*msg
, UBYTE
**argstring
)
28 if (LengthArgstring(ARG1(msg
)) != sizeof(void *))
31 ptr
= BADDR(*(BPTR
*)ARG1(msg
));
33 *argstring
= CreateArgstring((UBYTE
*)&ptr
, sizeof(void *));