http://www.opengroup.org/onlinepubs/009695399/functions/realloc.html

2007/9/24, Chris Webb <[EMAIL PROTECTED]>:
> Jukka Salmi <[EMAIL PROTECTED]> writes:
>
> > Hmm, why using the ternary operator? Are there systems where
> > `realloc(NULL, size)' does not behave identically to `malloc(size)'?
>
> I remember some old unix systems that segfault if you pass realloc a null
> pointer! I haven't seen anything like that for a long time, though, and I
> think ISO C now specifies that realloc(NULL, size) is the same as
> malloc(size), so I was probably just being over-paranoid.
>
> Cheers,
>
> Chris.
>
>

Reply via email to