1 #include <libraries/reqtools.h>
2 #include <proto/exec.h>
3 #include <proto/reqtools.h>
9 #define PROGNAME "rtstring"
11 struct ReqToolsBase
*ReqToolsBase
;
15 static void cleanup(char *msg
)
17 if (msg
) printf(PROGNAME
": %s\n", msg
);
19 if (ReqToolsBase
) CloseLibrary((struct Library
*)ReqToolsBase
);
24 static void openlibs(void)
26 ReqToolsBase
= (struct ReqToolsBase
*)OpenLibrary("reqtools.library", 0);
27 if (!ReqToolsBase
) cleanup("Can't open reqtools.library");
30 static void action(void)
32 struct TagItem tags
[] =
34 {RT_Underscore
, (IPTR
)'_' },
35 {RTGS_TextFmt
, (IPTR
)"AROS - The AROS Research OS\n\nLine2\nLine3" },
36 {RTGS_GadFmt
, (IPTR
)"O_k|Hel_lo|_Something" },
40 rtGetStringA(s
, 100, "Title", NULL
, tags
);