@[email protected] to Programmer [email protected] • 3 months agoDoes this exist anywhere outside of C++?lemmy.mlimagemessage-square59fedilinkarrow-up1167cross-posted to: [email protected]
arrow-up1167imageDoes this exist anywhere outside of C++?lemmy.ml@[email protected] to Programmer [email protected] • 3 months agomessage-square59fedilinkcross-posted to: [email protected]
minus-square@[email protected]linkfedilink5•3 months agoI only program in C. I was under the assumption that \n also flushes
minus-square@[email protected]linkfedilinkEnglish2•3 months agoI remember having to fflush a couple of times.
minus-squarepelyalinkfedilink3•edit-23 months 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
I only program in C. I was under the assumption that \n also flushes
I remember having to
fflush
a couple of times.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