@cm0002@lemmy.world to Programmer Humor@programming.dev • 14 days agoDoes this exist anywhere outside of C++?lemmy.mlimagemessage-square59fedilinkarrow-up1167arrow-down123cross-posted to: programmerhumor@lemmy.ml
arrow-up1144arrow-down1imageDoes this exist anywhere outside of C++?lemmy.ml@cm0002@lemmy.world to Programmer Humor@programming.dev • 14 days agomessage-square59fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-square@embed_me@programming.devlinkfedilink5•13 days agoI only program in C. I was under the assumption that \n also flushes
minus-squarepelyalinkfedilink3•edit-213 days agoIt depends on whether you are printing to a terminal or to a file (and yes the terminal is also a file), and even then you can control the flushing behaviour using something like unbuffer
minus-square@ulterno@programming.devlinkfedilinkEnglish2•13 days agoI remember having to fflush a couple of times.
I only program in C. I was under the assumption that \n also flushes
It depends on whether you are printing to a terminal or to a file (and yes the terminal is also a file), and even then you can control the flushing behaviour using something like
unbuffer
I remember having to
fflush
a couple of times.