Path: utzoo!attcan!uunet!mcsun!ukc!newcastle.ac.uk!turing!q1rse From: D.M.Johnson@newcastle.ac.uk (D.M. Johnson) Newsgroups: comp.sys.atari.st Subject: Sozobon C Message-ID: <1990Mar5.104025.1994@newcastle.ac.uk> Date: 5 Mar 90 10:40:25 GMT Sender: news@newcastle.ac.uk Organization: Computing Laboratory, U of Newcastle upon Tyne, UK NE17RU Lines: 40 This has most likely been on the net before so replies to this query should be Emailed if possible. Query.. I have just got a copy of Sozobon C and began to right of couple of programs for it. One of these programs was a simple screen load program to swap between screens stored in memory. This program required the use of the Gemdos function Malloc, however the complier refused to complie. Thinking that this was a fault in the program I just entered I entered this very small program: #include #include main() { long address; address=Malloc(-1); printf(address); } The complier returned with Malloc failure. I am doing something wrong or is there a bug in the complier? If it is a bug is there a way round it. Thanks in advance Dave +------------------------------------+----------------------------------------+ | David M. Johnson | Janet : D.M.Johnson@uk.ac.newcastle | | c/o Electrical and Electronic Eng. | ARPA : D.M.Johnson@newcastle.ac.uk | | Merz Court | UUCP : ...ukc!newcastle!D.M.Johnson | | Newcastle University | | | Newcastle upon Tyne | | | NE1 7RU | | +------------------------------------+----------------------------------------+ | I DON'T KNOW ABOUT YOU BUT I COULD MURDER A CURRY said death | +------------------------------------+----------------------------------------+