On Sat, Mar 15, 2014 at 01:11:03AM +0100, Andreas Krennmair wrote:
> * Claus Assmann <[email protected]> [2014-03-15 01:00]:
> >Oh, you use Linux. Of course they don't have useful man pages and
> >miss important functions.  Geez, even SunOS 5.x has these.
> 
> Except strlcat() on Solaris has slightly different semantics than
> the OpenBSD implementation.

And here's a nice thread that puts forth very strong arguments that
using these functions is dumb.

https://www.sourceware.org/ml/libc-alpha/2000-08/msg00052.html

The ultimate point of the thread is one I more or less already made
in my first post in the thread:  If you're going to do string
manipulation without potentially botching it, you need to know how big
your buffers are, AND you need to know that you don't have too much
data to fit in them.  If you're going to have to figure that out
anyway, then using str[nl]cpy is not any better than just using
strcpy.  Or memcpy, for that matter.  Especially if you do a lot of
that... it's more efficient.

-- 
Derek D. Martin    http://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail due to spam prevention.  Sorry for the inconvenience.

Attachment: pgpXDAgL9gRMz.pgp
Description: PGP signature

Reply via email to