@thellier
Well that's not right
At least all the interface defs for libraries with ARexx support show a "STRPTR * " as the second argument.
Found this by googling:
6.3 ARexx function
------------------
The function that gets called from ARexx will receive a RexxMsg(1)
pointer in register A0. The ARG0 member of the RexxMsg holds the name of
the function that ARexx wants to run (the comparison should be case
independent), and the parameters to the function is put in ARG1-ARG15. If
your library doesn't recognize the function, you should return with 1 set
in register D0, otherwise you should run the function with the specified
parameters and return error in D0 (0=OK, 5=WARN etc). When returning OK,
you can return a result string by putting a pointer to an ArgString(2) in
A1, otherwise set A1 to 0 (zero).
(1) = See proper ARexx header file for "struct RexxMsg" definition.
(2) = See documentation for rexxsyslib.library/CreateArgstring().
I'm sure I've seen a proper bit of example code out there but can't find it for the moment.
Surely at least one of the libs on aminet must have src with it?
[edit]
Bit more research confrms the above is correct.
Edited by broadblues on 2014/12/3 16:39:42