1 #include <proto/exec.h>
2 #include <proto/rexxsyslib.h>
3 #include <rexx/storage.h>
8 struct RxsLib
*RexxSysBase
;
14 RexxSysBase
= (struct RxsLib
*)OpenLibrary("rexxsyslib.library", 0);
15 if (RexxSysBase
== NULL
)
17 puts("Error opening rexxsyslib.library");
22 puts("Opening rexxsyslib.library succeeded");
25 puts("Creating Argstring");
26 s
= CreateArgstring("1234", 4);
29 puts("Error creating Argstring");
32 puts("Getting length");
33 printf("Length: %ld\n",(long)LengthArgstring(s
));
34 puts("Deleting Argstring");
37 CloseLibrary((struct Library
*)RexxSysBase
);