Detab
[AROS.git] / test / rexxsyslibtest.c
blobe08f53e7d2cc36a4897a68b72062f767ce02dd51
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",(long)LengthArgstring(s));
34 puts("Deleting Argstring");
35 DeleteArgstring(s);
37 CloseLibrary((struct Library *)RexxSysBase);
38 exit(0);