C (102/304)

From:Allan Odgaard
Date:13 Aug 2000 at 10:51:12
Subject:Re: Passing a ptr

On 13-Aug-00, Niels de Koning wrote:

>> It works fine as is but I when I place it in a function and call that
>> function, it doesn't work at all. [...]
> If you want to return a value from a function in the parameter list
> you always have to add a level of indirection to that parameter, [...]

Or actually return the value, e.g.:

Array **MakeArray ()
{
Array **array = ...
...
return array;
}

void main ()
{
Array **array = MakeArray();
}

Regards Allan