C (150/304)

From:Jack York
Date:16 Aug 2000 at 17:46:27
Subject:Re: Passing a ptr

Hello Damir

On 14-Aug-00, Damir Arh wrote:
> Hello!

>> if (*array = (mystruct **) AllocVec ( arraysize * sizeof (mystruct)))
>
> Shouldn't you be using 'sizeof(mystruct *)' as you are actually allocating
> an array of pointers to mystruct and not an array of mystructs if I am not
> mistaking.

Geez, you are absolutely right. I have used that sort of routine many
times.
Can't believe I kept overlooking the obvious mistake. That cleared up the
FreePooled problem. Thanks Damir. :)

Jack