[PATCH] Implement strlcpy [BZ #178]

Florian Weimer fweimer@redhat.com
Mon Sep 15 16:36:00 GMT 2014


On 09/15/2014 05:53 PM, Paul Eggert wrote:
> It would not be a good idea to add this to glibc, not only because this
> implementation would be incompatible with OpenBSD's, but more generally
> because the interface is poorly designed.

How is it incompatible with the OpenBSD implementation?

> It's *particularly* not a good idea to add propaganda to the manual,
> with phrases calling strlcpy "more useful".  I mean, c'mon.

The original documentation for strncpy already called it “rarely 
useful”, otherwise I wouldn't have used this phrasing.

-- 
Florian Weimer / Red Hat Product Security



More information about the Libc-alpha mailing list