realloc() (was: Re: Safe coding practices)

Doug Gwyn gwyn at smoke.brl.mil
Sat Feb 9 07:55:52 AEST 1991


In article <00066 at jimi.UUCP> rob at jimi.UUCP writes:
>  Can anyone cite ANSI or any other reference to clear this up?

They've already done so.  realloc() is obliged, in a conforming
implementation, to preserve the old data (and validity of the
old pointer value) when it returns null.



More information about the Comp.lang.c mailing list