char *catstr(char*a,char*b) { char*x=a; while(*a!='\0') { a++; } while(*b!='\0') { *a=*b; a++; b++; } *a='\0'; return x; }