fflush(stdout) in c
问题 Right when I am at fflush(stdout) and I break there in GDB, can I know what is there in stdout before I actually print it? How can I know what is there in stdout at any point in time? 回答1: You almost certainly can, but you probably shouldn't. The standard requires only that FILE be a type that is useful to the implementation to identify an open file and whatever state is required to implement the semantics of the various functions that operate on streams. I'd generally agree with other