k-chow/libs/libc/strcpy.c

14 lines
144 B
C
Raw Permalink Normal View History

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