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
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(),
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