note
tilly
The reason for removing the [return] statement is that you are not supposed to use that outside of functions ([eval], [do]).<P>
Just end with:
<code>
1;
</code>
and it will work.<P>
As for the pointer logic, sorry. No energy to go through it. It looked like a mess FWIW. I would just use recursion for this problem. (OK, so you take a performance hit.)
50050
50070