C (212/254)

From:Allan Odgaard
Date:24 Apr 00 at 20:04:22
Subject:Re: strdup()

On 24-Apr-00, Mike Carter wrote:

> An equivalent piece of source that works in the same way would be
> perfect. If I use malloc will not NOT deallocate mem on exit of
> function? i don't want to pass a pointer back which is made iunvalid
> as soon as procedure is exited.

No, generally only stack allocated memory will be freed at the end of a
function.

> � P.S. Stormamiga.lib offers a strdup.
> At additional cost :-/

I think the evaluation version has it as well -- but the registered version
only costs 10 DM, can't you afford this? ;-)

Regards Allan

------------------------------------------------------------------------
*--- FREE VOICEMAIL FOR YOUR HOME PHONE! ---*
With eVoice Now you can keep in touch with clients, vendors, co-workers,
friends and family ANYTIME, ANYWHERE. Sign Up Today for your FREE!
http://click.egroups.com/1/3426/1/_/451227/_/956603211/
------------------------------------------------------------------------