Date: Sun, 10 Oct 1999 13:45:52 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Kalum Somaratna cc: djgpp AT delorie DOT com Subject: Re: xmalloc and xfree In-Reply-To: <199910101551.JAA13611@lakdiva.slt.lk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 10 Oct 1999, Kalum Somaratna wrote: > The header file wich contain's the definition is stdlib.h as > documented in the doc's. > > #include > void *xmalloc(size_t size); Please look at stdlib.h, and you will see that the prototype of xmalloc is commented out there. There's an explanation there about the reasons. > It is strange that you got the messages. I compiled your program > and it linked without any problems and I also didn't get any > undefined reference's. If you didn't use the -Wall option, the compiler won't warn about functions with no prototypes.