strcopy(char* dest, const char* source)
{
if (dest == NULL || source == NULL) {
return NULL;
}
char* ret = dest;
while((*dest++ = *source++) != '\0');
return ret;
}
参考:
strcopy(char* dest, const char* source)
{
if (dest == NULL || source == NULL) {
return NULL;
}
char* ret = dest;
while((*dest++ = *source++) != '\0');
return ret;
}
参考: