Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by wpollock

23 days ago

In C, you can use setvbuf to control buffering on stdout. There are also Linux command line utilities you can use to control buffering, unbuffer and stdbuf.

2 comments

wpollock

Reply

usefulcat  22 days ago

This is true, although neither of those by them selves will achieve what the author is aiming for.

cassepipe  22 days ago

If you want to learn more, I liked this blog post: https://hmarr.com/blog/how-stdbuf-works/

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities