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.
fgetsの変数がある場合
たとえば、fgets(question、200、stdin); 末尾の空白の要素をすべて使用せずに、変数の質問のサイズを決定するにはどうすればよいですか?
を使用しstrlen(3)ます。についてmalloc(3)も質問がありましたか?
strlen(3)
malloc(3)