cURL / Mailing Lists / curl-library / Single Mail


Re: Modifying the example source code

From: Dan Fandrich <>
Date: Mon, 28 Feb 2011 15:12:52 -0800

On Mon, Feb 28, 2011 at 11:13:57PM +0100, Ben Noordhuis wrote:
> Tor, do you happen to know on what platforms or architectures
> realloc(NULL) causes issues? ISO mandates that it should be
> functionally equivalent to malloc() and I use it like that in my own
> code. It's never blown up so far but if there are portability issues,
> I'd like to be one step ahead of them.

A quick search will fine lots of warnings about relying on this on pre-ISO
environments, but I could only find one mentioned by name: NextStep.

>>> Dan
List admin:
Received on 2011-03-01