fxlibc/src/libc/string/strcpy.c

13 lines
167 B
C
Raw Normal View History

2021-05-09 17:34:00 +02:00
#include <string.h>
2020-09-17 19:27:01 +02:00
char *strcpy(char *dest, char const *src)
{
size_t i;
i = -1;
while (src[++i] != '\0')
dest[i] = src[i];
dest[i] = '\0';
return (dest);
}