Re: Patch for Inline::C-Cookbook

2002-09-02 Thread Neil Watkiss
Hi Ken, You shouldn't mix this: soldier-name = strdup(name); with this: Safefree(soldier-name); because strdup() is just a C library function that uses malloc(), and Safefree might not be. You want to use savepv(), which is the Perl API's equivalent that's guaranteed to work with

Re: Patch for Inline::C-Cookbook

2002-09-02 Thread Ken Williams
On Monday, September 2, 2002, at 06:41 PM, Neil Watkiss wrote: Hi Ken, You shouldn't mix this: soldier-name = strdup(name); with this: Safefree(soldier-name); because strdup() is just a C library function that uses malloc(), and Safefree might not be. You want to use savepv(),

Re: Patch for Inline::C-Cookbook

2002-09-02 Thread Piers Harding
Perl is full of surprises :-) - I'd never heard of it too, or perlapio ( pointed to herein ) *sigh* so little time so much to learn Cheers. On Tue, Sep 03, 2002 at 12:09:05PM +1000, Ken Williams wrote: On Monday, September 2, 2002, at 06:41 PM, Neil Watkiss wrote: Hi Ken, You