넘겨주거나 리턴 받을때 char *a = (char*)malloc(sizeof(char)*16);

이러면 function(a); 이렇게 하면 배열처럼 크기가 자동으로 인식되어서 사용가능 한가요??