stdout bufferin
utzoo!decvax!ucbvax!menlo70!sytek!sytekvax!zehntel!berry
utzoo!decvax!ucbvax!menlo70!sytek!sytekvax!zehntel!berry
Thu Aug 27 14:21:07 AEST 1981
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
More information about the Comp.bugs.2bsd
mailing list