Re: char ** realloc

From: Allen McIntosh (mcintosh_at_mc-pc.research.telcordia.com)
Date: 04/30/03


Date: Wed, 30 Apr 2003 00:41:07 GMT

In article <b8n1fh$idi$3@solaria.cc.gatech.edu>,
Joshua Jones <josh@cc.gatech.edu> wrote:
>I've looked at this for a while, and I just can't figure it out.
>The following code is causing my program to crash. Does anyone
>see anything wrong with this code?

>char ** result;
>result = realloc (result, (((*count)+1) *
> sizeof (char *)));

What is the value of result the first time this code is executed?



Relevant Pages

  • Re: char ** realloc
    ... Joshua Jones wrote: ... > The following code is causing my program to crash. ... Does anyone have any clues? ...
    (comp.unix.programmer)
  • Re: char ** realloc
    ... >The following code is causing my program to crash. ... How does result get initialized the very first time before realloc is ... Does anyone have any clues? ...
    (comp.unix.programmer)
  • Re: char ** realloc
    ... Joshua Jones wrote: ... > The following code is causing my program to crash. ... don't see how the arraylike thing is accessed, ...
    (comp.unix.programmer)
  • In the Land of the Blind, the Hoff is truly King!
    ... observed to crash the system from User Mode code. ... that compiler initialized memory is causing the problem ... 05 pic s9comp value 29779. ... If it is a bug then it's just that; ...
    (comp.os.vms)
  • Re: Entourage 2008 Continuously Crashing
    ... Something in your account is causing the crash on PPC only. ... Regardless, this is still a PPC bug with Entourage 2008 since this problem doesn't occure in Entourage 2008 on Intel, Entourage 2004 on PPC, Outlook 2003, or Outlook 2007. ... I would rather not contact Microsoft support directly since I would then be required to spend a ridiculous amount of time on the phone just trying to get to an upper level engineer. ...
    (microsoft.public.mac.office.entourage)