Idiot C/C++ Pointer Question

2003-07-25 Thread Régis Daniel de Oliveira
Hy all! I'm trying to build a function that will have 2 pointers as parameters. When this function is called by the main function, is should modify the 2nd parameter and the main function should be able to work with the second parameter modified. But, inside the function that work with the point

Re: Idiot C/C++ Pointer Question

2003-07-25 Thread Régis Daniel de Oliveira
Hy! I found the problema... I forgot to put the '&' before the 2nd parameter passed to the function, and did'n used the second pointer as pointer. Look: void ForwardColumnsOnRecord(Char *LastColumn, Char **DestColumn, UInt16 NumColsToAdvance) { int Count; int NumChars=0; *DestColumn = Las