diff options
| author | Leandro Lupori <luporl@FreeBSD.org> | 2020-01-15 19:46:01 +0000 |
|---|---|---|
| committer | Leandro Lupori <luporl@FreeBSD.org> | 2020-01-15 19:46:01 +0000 |
| commit | 075fb85f0904d5a9ddb59d03f78a5dcb4237903d (patch) | |
| tree | f879929a270c11a12a0c237dad13d32173066afa /lib/libc/string | |
| parent | 8c5cb4ce2571e2ffb29ff258ee5a5dd90a2e04ec (diff) | |
Notes
Diffstat (limited to 'lib/libc/string')
| -rw-r--r-- | lib/libc/string/strcpy.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libc/string/strcpy.c b/lib/libc/string/strcpy.c index 3eb0aa81eff5..f58cbd9784a2 100644 --- a/lib/libc/string/strcpy.c +++ b/lib/libc/string/strcpy.c @@ -37,8 +37,17 @@ __FBSDID("$FreeBSD$"); #include <string.h> +#ifdef WEAK_STRCPY +__weak_reference(__strcpy, strcpy); +#endif + char * -strcpy(char * __restrict to, const char * __restrict from) +#ifdef WEAK_STRCPY +__strcpy +#else +strcpy +#endif +(char * __restrict to, const char * __restrict from) { char *save = to; |
