diff options
| author | Jacques Vidrine <nectar@FreeBSD.org> | 2003-04-29 21:13:50 +0000 |
|---|---|---|
| committer | Jacques Vidrine <nectar@FreeBSD.org> | 2003-04-29 21:13:50 +0000 |
| commit | 5723e501abb675701352eb3e9fd58bb3cc2c649d (patch) | |
| tree | e9749f1ff2693755bce73e10528fc8cc6a6563ea /lib/libc/string/strlcpy.c | |
| parent | a8b5a9cd120e319cacf1c68e4a257e6955e0d5d6 (diff) | |
Notes
Diffstat (limited to 'lib/libc/string/strlcpy.c')
| -rw-r--r-- | lib/libc/string/strlcpy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/string/strlcpy.c b/lib/libc/string/strlcpy.c index a8a6cb7da86b..74f511d78378 100644 --- a/lib/libc/string/strlcpy.c +++ b/lib/libc/string/strlcpy.c @@ -33,15 +33,18 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "namespace.h" #include <sys/types.h> #include <string.h> +#include "un-namespace.h" +__weak_reference(_strlcpy, strlcpy); /* * Copy src to string dst of size siz. At most siz-1 characters * will be copied. Always NUL terminates (unless siz == 0). * Returns strlen(src); if retval >= siz, truncation occurred. */ -size_t strlcpy(dst, src, siz) +size_t _strlcpy(dst, src, siz) char *dst; const char *src; size_t siz; |
