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
+------------------------------------------------------------+
| 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