2 #include <libraries/reqtools.h>
3 #include <proto/exec.h>
4 #include <proto/reqtools.h>
10 #define PROGNAME "rtezrequest"
12 struct ReqToolsBase
*ReqToolsBase
;
14 static void cleanup(char *msg
)
16 if (msg
) printf(PROGNAME
": %s\n", msg
);
18 if (ReqToolsBase
) CloseLibrary((struct Library
*)ReqToolsBase
);
23 static void openlibs(void)
25 ReqToolsBase
= (struct ReqToolsBase
*)OpenLibrary("reqtools.library", 0);
26 if (!ReqToolsBase
) cleanup("Can't open reqtools.library");
29 static void action(void)
31 struct TagItem tags
[] =
33 { RT_Underscore
, (IPTR
)'_' },
34 { RTEZ_ReqTitle
, (IPTR
)"I'm a ReqTools Requester" },
38 IPTR args
[] = {(IPTR
)"ABCDEF12345678", 12345678};
40 rtEZRequestA("This is a requester\n"
44 "String arg: \"%s\" Integer arg: %ld",