prism2.device: Compiler delint
[AROS.git] / workbench / demos / rtpalette.c
blobb04c52dd17668b99d8d424c5b28fc2071d7909c8
2 #include <libraries/reqtools.h>
3 #include <proto/exec.h>
4 #include <proto/reqtools.h>
6 #include <stdio.h>
7 #include <string.h>
8 #include <stdlib.h>
10 #define PROGNAME "rtpalette"
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);
20 exit(0);
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 { TAG_DONE }
36 rtPaletteRequestA("Title", NULL, tags);
39 int main(void)
41 openlibs();
42 action();
43 cleanup(0);
45 return 0;