char *strcat(), *strcpy(), *fgets();

Dave Decot decot at hpisod2.HP.COM
Tue Jun 28 05:08:49 AEST 1988


> < Most of us call this function strdup(). . .
> 
> Well. . .strdup is indeed useful, but probably the name should not start with
> "str", to avoid conflicts with possible revisions of the C standard.
> -- 
>     ado at ncifcrf.gov			ADO is a trademark of Ampex.

The reason "most of us" call it strdup() is that it's in the SVID that way.

For that reason, I'd object strongly if ANSI defined it to be something else.

So, go ahead and call it strdup().  :-)

Dave "I call it strsave()" Decot
hpda!decot



More information about the Comp.std.c mailing list