2 Copyright © 1995-2002, The AROS Development Team. All rights reserved.
5 Desc: Rexx stub for FreeMem system function
9 #include <proto/exec.h>
10 #include <proto/rexxsyslib.h>
11 #include <exec/types.h>
12 #include <rexx/storage.h>
13 #include <rexx/errors.h>
18 #include "rexxsupport_intern.h"
19 #include "rxfunctions.h"
21 LONG
rxsupp_freemem(struct Library
*RexxSupportBase
, struct RexxMsg
*msg
, UBYTE
**argstring
)
28 if (LengthArgstring(ARG1(msg
)) != sizeof(void *))
31 mem
= *(void **)ARG1(msg
);
32 size
= strtoul(ARG2(msg
), &end
, 10);
33 while (isspace(*end
)) end
++;
38 *argstring
= CreateArgstring("1", 1);