char * strcatTest(char *dst,const char *src);
Action()
{
char a[]="come on";
char b[]="every one";
char * result=strcatTest(a,b);
lr_output_message("%s",result);
return 0;
}
char * strcatTest(char *dst,const char *src)
{
char *res=dst;
if(dst!=NULL && src!=NULL)
{
while(*dst!=' ')
{
*dst++;
}
*dst++='-';
while(*src!=' ')
{
*dst++=*src++;
}
}
else
{
lr_output_message("dst 或者src非法,请检查");
}
return res;
}