cm0002@lemmy.world to Programmer Humor@programming.dev · 5 months agoDoes this exist anywhere outside of C++?lemmy.mlexternal-linkmessage-square49linkfedilinkarrow-up11arrow-down10cross-posted to: programmerhumor@lemmy.ml
arrow-up11arrow-down1external-linkDoes this exist anywhere outside of C++?lemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 5 months agomessage-square49linkfedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareembed_me@programming.devlinkfedilinkarrow-up0·5 months agoI only program in C. I was under the assumption that \n also flushes
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up0·5 months agoI remember having to fflush a couple of times.
minus-squarepelya@lemmy.worldlinkfedilinkarrow-up0·edit-25 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