void strmcpy( char *t, int m, char *s ){
t=t+m-1;
while(*t!='\0'){
*s=*t;
s++;
t++;
}
*s='\0';
}
习题8-5 使用函数实现字符串部分复制
最新推荐文章于 2024-07-18 11:11:00 发布
void strmcpy( char *t, int m, char *s ){
t=t+m-1;
while(*t!='\0'){
*s=*t;
s++;
t++;
}
*s='\0';
}