2 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
5 Desc: Add offset to a 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_offset(struct Library
*RexxSupportBase
, struct RexxMsg
*msg
, UBYTE
**argstring
)
29 offset
= strtol(ARG2(msg
), &end
, 10);
30 while (isspace(*end
)) end
++;
35 if (LengthArgstring(ARG1(msg
)) != sizeof(void *))
38 ptr
= *(char **)ARG1(msg
) + offset
;
40 *argstring
= CreateArgstring((UBYTE
*)&ptr
, sizeof(void *));