/*楼主不妨试一下这个程序*/void Strcat1(char *s,char ch){ while(*s)s++; *(short*)s=ch;}#include "stdio.h"main(){ char str[40]="Do you understand"; Strcat1(str,'?'); puts(str);}
俺这void Strcat1(char *s,char ch)即便对于s[]为空串情况也是兼容的
char * string=NULL