diff options
Diffstat (limited to 'lib/string/strcpy.c')
| -rw-r--r-- | lib/string/strcpy.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/string/strcpy.c b/lib/string/strcpy.c new file mode 100644 index 0000000..a761577 --- /dev/null +++ b/lib/string/strcpy.c @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: MIT */ +/* Derived from musl libc (Copyright © 2005-2020 Rich Felker, et al.) */ + +#include <string.h> + +char *strcpy(char *restrict dest, const char *restrict src) +{ + __stpcpy(dest, src); + return dest; +} |
