banan-os/libc/string/strcpy.c

10 lines
172 B
C

#include <string.h>
char* strcpy(char* restrict dest, const char* restrict src)
{
size_t i;
for (i = 0; src[i]; i++)
dest[i] = src[i];
dest[i] = '\0';
return dest;
}