What happens when realloc() returns NULL?

andre andre at targon.UUCP
Fri Sep 1 21:22:03 AEST 1989


In article <TOM.89Aug30231415 at yang.cpac.washington.edu> tom at yang.cpac.washington.edu (Tom May) writes:

>and malloc() returns non-NULL, but realloc() returns NULL, is the memory
>pointed to by p1 still allocated?

Yes, it is or nobody would use realloc anymore... :-)

-- 
    \---|    AAA         DDDD  It's not the kill, but the thrill of the chase.
     \  |   AA AAvv   vvDD  DD        Ketchup is a vegetable.
  /\  \ |  AAAAAAAvv vvDD  DD                    {nixbur|nixtor}!adalen.via
_/__\__\| AAA   AAAvvvDDDDDD    Andre van Dalen, uunet!hp4nl!targon!andre



More information about the Comp.lang.c mailing list