Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!uw-beaver!tektronix!reed!percival!baer From: baer@percival.UUCP Newsgroups: comp.sys.amiga Subject: AllocMem() with 16-bit Manx Message-ID: <872@percival.UUCP> Date: Mon, 31-Aug-87 23:35:15 EDT Article-I.D.: percival.872 Posted: Mon Aug 31 23:35:15 1987 Date-Received: Thu, 3-Sep-87 05:50:19 EDT Organization: Percy's UNIX, Portland, OR. Lines: 22 Keywords: HELP! I have been working on a program that uses AllocMem(), and I can't get it to work with 16-bit Manx C. I know it will work when I compile with 32-bit ints. Is there a way I can make it work properly in 16-bit Manx with a statement like the following: SpriteHead = (struct VSprite *)AllocMem(sizeof(struct VSprite), MEMF_PUBLIC | MEMF_CLEAR); I'm still getting the hang of Manx (I'm still a little used to UNIX), so forgive my ignorance. Rob Peck, are you out there? This example is from your ReadyGels() routine, with the if taken out. BTW I already tried: void *AllocMem(); AND long AllocMem(); (The second was used hastily without a lot of forethought :-) All suggestions will be appreciated. -- -Ken Baer. "Press the button labeled 'Extreme Emergency' on the console" - The Doctor. USENET - ...tektronix!reed!percival!baer OR baer@percival.pdx.com "The Few, The Proud, The Criminally Insane - Oberlin Computer Science" - me.