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