25

2 つの単語の間の空白を含めて、標準入力から行全体を読みたいです。

gets on gcc を使用すると、次のメッセージが表示されます。

send.c:(.text+0x2a): warning: the `gets' function is dangerous and should not be used.

より良い代替手段は何ですか?

4

0 に答える 0