www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/10/14:01:22

Date: Sun, 10 Oct 1999 13:45:52 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Kalum Somaratna <kalum AT myflat DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: xmalloc and xfree
In-Reply-To: <199910101551.JAA13611@lakdiva.slt.lk>
Message-ID: <Pine.SUN.3.91.991010134057.19886R-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 <stdlib.h>
>  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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019