>>256
題意からはポインターを使うのが順当だろうけど、以下でも可能。

void getname(char *s1, const char *s2)
{
sprintf(s1,"%s-%s",s1,s2);
}