C++程序  |  21行  |  222 B

/*
 * strcpy.c
 *
 * strcpy()
 */

#include <string.h>

char *strcpy(char *dst, const char *src)
{
    char *q = dst;
    const char *p = src;
    char ch;

    do {
	*q++ = ch = *p++;
    } while (ch);

    return dst;
}