void strcat(char*s1, char*s2)

{

  while(*s1!='\0')

    s1++;

  while(*s2!='\0')

  {

    *s1= *s2;

    s1++;

    s2++;

  }

  *s1='\0';

}


srtcat함수를 구현해봤는데 s1에 hello 를 쓰고 s2에 world를 쓰는데


hello world 이렇게 한칸 띄우고 s2를 붙이고 싶은데 방법이 없을까?