k-tana-zero/libs/libc/strcpy.c

14 lines
144 B
C
Raw Normal View History

#include <string.h>
char *strcpy(char *dest, const char *src)
{
char *p = dest;
while (*src)
*p++ = *src++;
*p = '\0';
return dest;
}