`Hiding' libc symbols
Christoph Hellwig
hch at infradead.org
Wed May 7 06:36:17 PDT 2003
On Wed, May 07, 2003 at 02:32:40AM -0700, David Schultz wrote:
> > strlcpy(struct string *a, struct string *b)
> > {
> > if (a->size == 0) {
> > b->size = 0;
> > return;
> > }
> > /* really copy the string */
> > }
>
> Hmm...but that program is broken. If someone overrides a symbol
> reserved by the C standard, he deserves whatever he gets. It is
> not unreasonable to expect applications to avoid using reserved
> symbols for thier own purposes.
strlcpy is not in any standard..
More information about the freebsd-arch
mailing list