/**********************************
 *                                *
 * Program: AutoRequester.c       *
 * ============================== *
 *                                *
 * Author:  Date:      Comments:  *
 * ------  ----------  ---------- *
 * Wgb     12/12/1987             *
 *                                *
 *                                *
 **********************************/


#include <exec/types.h>
#include <intuition/intuition.h>


struct IntuitionBase *IntuitionBase;
struct Window        *Window = NULL;


struct IntuiText Body =
   {
   0, 1,
   JAM2,
   10, 10,
   NULL,
   (UBYTE *)"Do you wish to program requesters?",
   NULL
   };

struct IntuiText YES =
   {
   2, 3,
   JAM2,
   5, 3,
   NULL,
   (UBYTE *)" I do !!!",
   NULL
   };

struct IntuiText NO =
   {
   2, 3,
   JAM2,
   5, 3,
   NULL,
   (UBYTE *)" I don't !!!",
   NULL
   };


main()
   {
   BOOL Answer;
   
   Open_All();
   
   Answer = AutoRequest(Window, &Body, &YES, &NO, 0L, 0L, 320L, 60L);
   
   if (Answer == TRUE)
      printf("That is the truth!\n");
   else
      printf("The truth is always the best.\n");
   
   Close_All();
   }



Open_All()
   {
   void          *OpenLibrary();
   
   if (!(IntuitionBase = (struct IntuitionBase *)
       OpenLibrary("intuition.library", 0L)))
      {
      printf("Intuition Library not found!\n");
      Close_All();
      exit(FALSE);
      }
   }



Close_All()
   {
   if (IntuitionBase)   CloseLibrary(IntuitionBase);
   }

