r6308@lvps87-230-33-50: verhaegs | 2007-12-03 22:24:30 +0100
[AROS.git] / test / rexxsyslibtest.c
blob4a426bd9f1b4dd81fa7774d84fd06d5cbe44a32a
1 #include <proto/exec.h>
2 #include <proto/rexxsyslib.h>
3 #include <rexx/storage.h>
5 #include <stdio.h>
6 #include <stdlib.h>
8 struct RxsLib *RexxSysBase;
10 int main(void)
12 UBYTE *s;
14 RexxSysBase = (struct RxsLib *)OpenLibrary("rexxsyslib.library", 0);
15 if (RexxSysBase == NULL)
17 puts("Error opening rexxsyslib.library");
18 exit(20);
20 else
22 puts("Opening rexxsyslib.library succeeded");
25 puts("Creating Argstring");
26 s = CreateArgstring("1234", 4);
27 if (s == NULL)
29 puts("Error creating Argstring");
30 exit(20);
32 puts("Getting length");
33 printf("Length: %ld\n",LengthArgstring(s));
34 puts("Deleting Argstring");
35 DeleteArgstring(s);
37 CloseLibrary((struct Library *)RexxSysBase);
38 exit(0);