Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!pacbell!att!mtunx!whuts!picuxa!gp From: gp@picuxa.UUCP (Greg Pasquariello X1190) Newsgroups: comp.unix.wizards Subject: Re: Stdio buffering question Message-ID: <594@picuxa.UUCP> Date: 10 Jun 88 13:04:31 GMT References: <16124@brl-adm.ARPA> Reply-To: gp@picuxa.UUCP (Greg Pasquariello X1190) Organization: AT&T/EDS Product Integration Center Lines: 19 In article <16124@brl-adm.ARPA> ultra!wayne@ames.arc.nasa.gov (Wayne Hathaway) writes: >I hate to bother Wizards with what is probably a very simple question, >but it stumps me. I have this very simple program that periodically >does an fprintf(stderr,...) to indicate progress. > > Wayne Hathaway ultra!wayne@Ames.ARPA You can turn buffering off for stderr (or any stream) with setbuf(). The syntax for stderr is setbuf(stderr, (char *) NULL). (where NULL is 0). -- ========================================================================= Greg Pasquariello AT&T Product Integration Center ihnp4!picuxa!gp 299 Jefferson Rd, Parsippany, NJ 07054 =========================================================================