Path: utzoo!utgpu!water!watmath!clyde!rutgers!umd5!cvl!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: comp.sys.ibm.pc Subject: Turbo C 1.5 setbuf(stderr bug Message-ID: <8015@elsie.UUCP> Date: 17 Feb 88 03:13:31 GMT Organization: NIH-LEC, Bethesda, MD Lines: 26 Repeat-By: Compiling and running this source #include "stdio.h" main() { static char buf[BUFSIZ]; setbuf(stderr, buf); (void) fprintf(stderr, "byebye\n"); return 0; } and noting the lack of output. Setvbuf messes up as well. All goes well if you subsitute "stdout" for "stderr" above. A workaround is an early "atexit" call specifying a function that does a fflush(stderr). Fixes, anyone? -- ado@vax2.nlm.nih.gov ADO, VAX, and NIH are Ampex and DEC trademarks