[OCLUG-devel] malloc() woes
Christopher Smith
x at xman.org
Sun May 29 13:34:45 PDT 2005
James Colannino wrote:
>Christopher Smith wrote:
>
>
>
>>Okay, so first thing is that I'm betting your "more_memory" function
>>is not returning char*. Without seeing it's definition though, it's
>>hard to be sure.
>>
>>
>
>
>It should be. I probably should have posted it though. Here's the
>prototype:
>
>char * more_memory(char *buffer);
>
>You pass the function the old pointer and it returns a new pointer.
>
>
What does it do with the old memory, and how does it decide how much new
memory it needs to allocate?
--Chris
More information about the OCLUG-devel
mailing list