#include <stdio.h>
#include <string.h>

char* strappend(char* dst, char* src)
{
        int i;
        for (i = 0 ; dst[i] != 0 ; i++);     //<- 여기에 세미콜론 안붙이면 출력 이상하게 나오고 붙이면 제대로 나오는데
       
        strcpy((dst + i), src);
        return dst;
       
}


int main()
{
        char a[] = "Hello";
        char b[20] = "world";
        char *p;
        p = strappend(b, a);
        printf("%s\n", b);
        printf("%s\n", p);
        return 0;
}