Path: utzoo!censor!geac!jtsv16!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!unmvax!ogccse!blake!milton!milton.acs.washington.edu!tom From: tom@yang.cpac.washington.edu (Tom May) Newsgroups: comp.lang.c Subject: What happens when realloc() returns NULL? Message-ID: Date: 31 Aug 89 06:14:15 GMT Organization: Center for Process Analytical Chemistry, U of Wash, Seattle Lines: 13 If I do this: char *p1, *p2; p1 = malloc (100); p2 = realloc (p1, 200); and malloc() returns non-NULL, but realloc() returns NULL, is the memory pointed to by p1 still allocated? -- Tom May tom@yin.cpac.washington.edu