Re: problem with malloc/realloc. Pls help.

2006-08-22 Thread Omololu
Thanks a lot, Igor & Mark. i was able to rectify the code to fix the problem. Now it works. (i had to use a pointer to a pointer to int, rather than just a pointer to int in the subroutine) thanks again. o. --- Igor Peshansky <[EMAIL PROTECTED]> wrote: > On Mon, 21 Aug 2006,

problem with malloc/realloc. Pls help.

2006-08-21 Thread Omololu
Hi, i have the following code. it compiles with gcc in Cygwin but the contents of the array ifitQ that I get after the call to the subroutine readCharges2 is gibberish. The code compiles with gcc under Linux and it runs correctly. it also compiles and runs correctly with windows visual studio. Pls