home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
printer
/
prfont12.lha
/
reqtst.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-02-21
|
1KB
|
42 lines
/*
* reqtst.c : Test all my autorequesters
*/
#include <stdio.h>
#include <functions.h>
#include "myscreen.h"
#include "defines.h"
/* Library pointers */
struct IntuitionBase *IntuitionBase ;
char fontsave[] = "MyFont";
int size = 24;
main(argc, argv)
int argc;
char *argv[];
{
if ((IntuitionBase = (struct IntuitionBase *)
OpenLibrary("intuition.library", NULL)) == NULL) exit(1);
/* if no intuition I can't even autorequest */
AutoRequest(NULL,&memmsg,0L,&oktxt,0L,0L,300L,75L);
AutoRequest(NULL,&availmsg,0L,&oktxt,0L,0L,300L,75L);
sprintf(msgfilename,"%s %ld\n",fontsave,size);
AutoRequest(NULL,&openfomsg,0L,&oktxt,0L,0L,300L,75L);
AutoRequest(NULL,&screenfail,0L,&oktxt,0L,0L,300L,75L);
AutoRequest(NULL,&windfail,0L,&oktxt,0L,0L,300L,75L);
strcpy(msgfilename,"Graphics");
AutoRequest(NULL,&libfailmsg,0L,&oktxt,0L,0L,300L,75L);
strcpy(msgfilename,"DiskFont");
AutoRequest(NULL,&libfailmsg,0L,&oktxt,0L,0L,300L,75L);
strcpy(msgfilename,"Dos");
AutoRequest(NULL,&libfailmsg,0L,&oktxt,0L,0L,300L,75L);
AutoRequest(NULL,&prfailtxt,0L,&oktxt,0L,0L,300L,75L);
if (IntuitionBase) CloseLibrary(IntuitionBase) ;
exit(0) ;
}