diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-09-07 22:36:12 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-09-12 14:34:30 -0400 |
commit | 8dafb84e667e81f04b0dace310161d33a37f8f50 (patch) | |
tree | 4d0e712ff3293decb34beaff99cc7d6fa290b38a /src/string | |
parent | 432f9f0e315a7df8e0c5dc820f0f77279b908bb1 (diff) | |
download | musl-8dafb84e667e81f04b0dace310161d33a37f8f50.zip musl-8dafb84e667e81f04b0dace310161d33a37f8f50.tar.gz musl-8dafb84e667e81f04b0dace310161d33a37f8f50.tar.bz2 |
remove unused code from strcpy.c
Diffstat (limited to 'src/string')
-rw-r--r-- | src/string/strcpy.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/string/strcpy.c b/src/string/strcpy.c index f7e3ba3..2883e93 100644 --- a/src/string/strcpy.c +++ b/src/string/strcpy.c @@ -4,13 +4,6 @@ char *__stpcpy(char *, const char *); char *strcpy(char *restrict dest, const char *restrict src) { -#if 1 __stpcpy(dest, src); return dest; -#else - const unsigned char *s = src; - unsigned char *d = dest; - while ((*d++ = *s++)); - return dest; -#endif } |