projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
432f9f0
)
remove unused code from strcpy.c
author
Rich Felker
<dalias@aerifal.cx>
Sat, 8 Sep 2018 02:36:12 +0000
(22:36 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 12 Sep 2018 18:34:30 +0000
(14:34 -0400)
src/string/strcpy.c
patch
|
blob
|
history
diff --git
a/src/string/strcpy.c
b/src/string/strcpy.c
index f7e3ba38c16e3e69395f85dcdd6c23bb20797a6c..2883e93040d87ebdc055f21c9c91a2dd8fde669d 100644
(file)
--- 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
}