Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!pdn!boake2!sherpa!rac From: rac@sherpa.uucp (Roger A. Cornelius) Newsgroups: comp.lang.c Subject: When to use fflush()? Keywords: fflush Message-ID: <143@sherpa.uucp> Date: 29 Aug 89 04:29:56 GMT Distribution: na Organization: Personal System Computing, St. Petersburg, FL Lines: 11 When should you use fflush()? OR are there any guarantees of when output buffers are flushed? I have a program that uses fputs() to print a prompt, then waits for a return to be typed. The prompt is always displayed, but am I guaranteed of this? Should I use fflush() anyway? What's the rule for when to use fflush(), and when it's not needed? Thanks, Roger -- Roger A. Cornelius rac@sherpa uunet!sherpa!rac