Does fgets() always terminate the char buffer with \0?
Does fgets() always terminate the char buffer with \\0 even if EOF is already reached? It looks like it does (it certainly does in the implementation presented in the ANSI K&R book), but I thought
问答
阅读(1)