提交 8dafb84e 编写于 作者: R Rich Felker

remove unused code from strcpy.c

上级 432f9f0e
...@@ -4,13 +4,6 @@ char *__stpcpy(char *, const char *); ...@@ -4,13 +4,6 @@ char *__stpcpy(char *, const char *);
char *strcpy(char *restrict dest, const char *restrict src) char *strcpy(char *restrict dest, const char *restrict src)
{ {
#if 1
__stpcpy(dest, src); __stpcpy(dest, src);
return dest; return dest;
#else
const unsigned char *s = src;
unsigned char *d = dest;
while ((*d++ = *s++));
return dest;
#endif
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册