Re: [fpc-pascal] Pointer to an array of PChar strings

2010-01-20 Thread Graeme Geldenhuys
2010/1/19 Marco van de Voort : > > where cfree is the free() corresponding to the malloc with which it was > allocated in the lib. (usually libc's) Thanks for the repy. In the end I found the library I was using was old. The newer library has a function that does the free'ing of that list for me.

Re: [fpc-pascal] Pointer to an array of PChar strings

2010-01-19 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > > I'm working with a C library that returns an array of strings. So that is > type PPChar. I C library does the array allocation, but doesn't do the > freeing of the array. > > How am I supposed to free an array of PChar strings? I think I need

[fpc-pascal] Pointer to an array of PChar strings

2010-01-19 Thread Graeme Geldenhuys
Hi, I'm working with a C library that returns an array of strings. So that is type PPChar. I C library does the array allocation, but doesn't do the freeing of the array. How am I supposed to free an array of PChar strings? I think I need to improve my iteration too, because I'm moving the point