TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: David Nugent
from: Paul Edwards
date: 1996-06-17 12:38:52
subject: Find a word

> I don't like strdup(), makes it a bit easy to forget to free the
> string

DN> How so? What's the difference between using it and malloc?

DN> Library calls exist for a reason. strdup() is convenient and it avoids 
DN> unnecessarily repeating code. There is no reason not to use it.

What about:

the name starts with "str" which is reserved for future expansion
by ISO C?

BFN.  Paul.
@EOT:

---
* Origin: X (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.