Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!elroy.jpl.nasa.gov!jato!jdickson From: jdickson@jato.jpl.nasa.gov (Jeff Dickson) Newsgroups: comp.sys.amiga.programmer Subject: Re: RE: HEEELLLPPPPPP!!!!! Message-ID: <1991Jun6.170740.5581@jato.jpl.nasa.gov> Date: 6 Jun 91 17:07:40 GMT References: <9106060516.AA18295@bruny.cc.utas.edu.au> Reply-To: jdickson@jato.Jpl.Nasa.Gov (Jeff Dickson) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 26 In article <9106060516.AA18295@bruny.cc.utas.edu.au> u895762@BRUNY.CC.UTAS.EDU.AU (Pavel Evgenjevich Sabourenkov) writes: > > Thanks everybody who send me some suggestions. I really appreciate it. > > The bug was in the manx itself - it did not know what type of variable >malloc() returns, so it assumes it's an int, although the user manual says >it should return (char *). > > There is an easy way to fix it - include > >char *malloc(); > > in the begining of the program. > >-Happy programming. > >-Paul S. u895762@bruny.cc.utas.edu.au > >Only \\ > \X/ Amiga. That's not a bug! Did you include the file functions.h? Any function that isn't explicitly declared as returning a particular type of object defaults to returning an int. This is standard C practice! jeff