char *strcpy(char* strDest, const char* strSrc)
{
if ((strDest == NULL) || (strSrc == NULL))
{
return NULL;
}
char * strDestCopy = strDest; //保存目标字符串首地址
while ((*strDest++ = *strSrc++) != 0);
return strDestCopy;
}
strcpyの機能cを達成するために
おすすめ
転載: blog.csdn.net/lpl312905509/article/details/104078417
ランキング