Re: [NEWBIE] Examine X.corpse problem.

From: Juliano Ravasi Ferraz (jferraz@linkway.com.br)
Date: 04/03/00


Chris Gilbert wrote:
>
> Juliano Ravasi Ferraz wrote:
> >
> > Dan Merillat wrote:
> > > If your libc has it, try strdupa() rather then strdup... it's automatically
> > > free()'d when your function returns, and is cheaper (cpu-wise) then malloc
> > > (which strdup() uses).
> >
> > What is your version of libc? I have GNU libc 2.1.1 and it does not have
> > this func.
>
> It's got it, it's a macro (no man page for it, but it's in info)  should
> be in /usr/include/string.h
>
> Cheers,
> Chris

Found. I needed to define __USE_GNU to use it.
Thank you very much.

Juliano

--
----=[ Juliano Ravasi Ferraz ]=----=[ jferraz@linkway.com.br ]=----
     Rayon Eletrônica e Informática Ltda. - Linkway Descalvado
--
URA Redneck if you think cow tipping should be an Olympic sport


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/10/01 PDT