Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
エラーが発生します:警告:フォーマット引数はポインターではありません(引数2)
この行で:printf("%s \n", *(group_list->name));
printf("%s \n", *(group_list->name));
名前が文字へのポインタであることを考えると、なぜこれが問題になるのかわかりません。sの使用に問題がありますか?別の指定子を使用する必要がありますか?
代わりにこれを使用してください:
printf("%s \n", group_list->name);
s変換指定子は、でchar *はないことを期待しcharます。
s
char *
char