void Copystr(char *des,char *src, int m)
{
assert(des != NULL || src != NULL);
for(int i = 0; *des != '\0',i < m; i++)
{
des++;
}
while(*des != '\0')
{
*src = *des;
des++;
src++;
}
*src = '\0';
}
int main()
{
//字符串
char str1[20] = "abcd123";
char str2[100];
Copystr(str1,str2, 2);
printf("str2 = %s\n", str2);
return 0;
}