#Manx/AllocRemember()
07-Dec-87 20:46:29
Sb: #97154-#Manx/AllocRemember()
Fm: Vic Wagner 76046,3004
To: Richard Rae/SYSOP 76703,4253
Richard,
I don't have the MANX stuff here at home, but here is a program that does
work.
#include <INTUITION/intuition.h>
#include <proto/intuition.h>
#include <exec/memory.h>
struct IntuitionBase *IntuitionBase;
struct Remember *RememberKey;
void main()
{
#define INTUITION_REV LIBRARY_VERSION
char *addr;
RememberKey=NULL;
/* Open the Intuition library. The result returned by this call is
* used to connect your program to the actual Intuition routines
* in ROM. If the result of this call is equal to zero, something
* is wrong and the Intuition you requested is not available, so
* your program should exit immediately
*/
IntuitionBase = (struct IntuitionBase *)
OpenLibrary("intuition.library", INTUITION_REV);
if (IntuitionBase == NULL) exit(FALSE);
addr=AllocRemember(&RememberKey,320L,0L);
FreeRemember(&RememberKey,TRUE);
}