Re: char ** realloc
From: Allen McIntosh (mcintosh_at_mc-pc.research.telcordia.com)
Date: 04/30/03
- Next message: Joshua Jones: "Re: char ** realloc"
- Previous message: Ed L Cashin: "Re: Colour editor"
- In reply to: Joshua Jones: "char ** realloc"
- Next in thread: Joshua Jones: "Re: char ** realloc"
- Reply: Joshua Jones: "Re: char ** realloc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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?
- Next message: Joshua Jones: "Re: char ** realloc"
- Previous message: Ed L Cashin: "Re: Colour editor"
- In reply to: Joshua Jones: "char ** realloc"
- Next in thread: Joshua Jones: "Re: char ** realloc"
- Reply: Joshua Jones: "Re: char ** realloc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|