Azehntel.107 net.2bsd-bugs utzoo!decvax!ucbvax!menlo70!sytek!sytekvax!zehntel!berry Thu Aug 27 14:21:07 1981 stdout bufferin With regard to Chris Kent's problems with buffered sdtout, we too have noticed this problem. In fact, one of my colleagues had a problem with his printf's not printf'ing, so I wrote a short hack to test his use of printf and gets. Mine worked fine, but his still failed. We scratched our heads until we noticed that stdout's buffer is flushed on a call to fflush(stdout), when it gets full, or WHEN STDIN IS READ(!). Simple when you know the trix, isn't it? -Berry Kercheval ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen of http://communication.ucsd.edu/A-News/ This Usenet Oldnews Archive article may be copied and distributed freely, provided: 1. There is no money collected for the text(s) of the articles. 2. The following notice remains appended to each copy: The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.