fflush(stdout) in c

前端 未结 4 1985
谎友^
谎友^ 2021-01-14 09:10

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

4条回答
  •  一向
    一向 (楼主)
    2021-01-14 09:39

    I think it is better to flush stdout, which means basically you are seeing the content on the screen or in a file(if stdout is redirected).

提交回复
热议问题