C equivalent of autoflush (flush stdout after each write)?

前端 未结 3 590
心在旅途
心在旅途 2020-12-06 08:59

In Perl, I can type:

$|++;

and anything printed to STDOUT will be automatically fflush()ed.

Is there an equivalent in C? In other w

3条回答
提交回复
热议问题