home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / printer / prfont12.lha / reqtst.c < prev    next >
C/C++ Source or Header  |  1990-02-21  |  1KB  |  42 lines

  1.  
  2. /*
  3.  *   reqtst.c : Test all my autorequesters
  4.  */
  5.  
  6. #include <stdio.h>
  7. #include <functions.h>
  8. #include "myscreen.h"
  9. #include "defines.h"
  10.  
  11.  
  12. /* Library pointers */
  13. struct IntuitionBase    *IntuitionBase ;
  14. char fontsave[] = "MyFont";
  15. int size = 24;
  16.  
  17. main(argc, argv)
  18. int argc;
  19. char *argv[];
  20. {
  21.  
  22.  
  23.     if ((IntuitionBase = (struct IntuitionBase *)
  24.         OpenLibrary("intuition.library", NULL)) == NULL) exit(1);
  25.          /* if no intuition I can't even autorequest */
  26.         AutoRequest(NULL,&memmsg,0L,&oktxt,0L,0L,300L,75L);
  27.         AutoRequest(NULL,&availmsg,0L,&oktxt,0L,0L,300L,75L);
  28.         sprintf(msgfilename,"%s %ld\n",fontsave,size);
  29.         AutoRequest(NULL,&openfomsg,0L,&oktxt,0L,0L,300L,75L);
  30.         AutoRequest(NULL,&screenfail,0L,&oktxt,0L,0L,300L,75L);
  31.         AutoRequest(NULL,&windfail,0L,&oktxt,0L,0L,300L,75L);
  32.         strcpy(msgfilename,"Graphics");
  33.         AutoRequest(NULL,&libfailmsg,0L,&oktxt,0L,0L,300L,75L);
  34.         strcpy(msgfilename,"DiskFont");
  35.         AutoRequest(NULL,&libfailmsg,0L,&oktxt,0L,0L,300L,75L);
  36.         strcpy(msgfilename,"Dos");
  37.         AutoRequest(NULL,&libfailmsg,0L,&oktxt,0L,0L,300L,75L);
  38.         AutoRequest(NULL,&prfailtxt,0L,&oktxt,0L,0L,300L,75L);
  39.     if (IntuitionBase) CloseLibrary(IntuitionBase) ;
  40.     exit(0) ;
  41. }
  42.