質問なんですが、
strdupという関数を使って、
char* a = strdup(name) nameは文字列
と、
char* a = new char[strlen(name) + 1]
strcpy(a, name)は、
同じ働きなんですか?