Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!harpo!seismo!hao!hplabs!sri-unix!gwyn@brl-vld From: gwyn@brl-vld@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: Re: Standard I/O streams open for reading and writing Message-ID: <4217@sri-arpa.UUCP> Date: Mon, 15-Aug-83 07:41:46 EDT Article-I.D.: sri-arpa.4217 Posted: Mon Aug 15 07:41:46 1983 Date-Received: Tue, 16-Aug-83 21:23:17 EDT Lines: 7 From: Doug Gwyn (VLD/VMB) The real problem with "r+", "w+", "a+" modes is that one loses buffering. The simplest fix would involve making either the getc() or putc() buffer count proceed in the opposite direction. (Whitesmiths does this in their buffered i/o package.) Unfortunately the test in the getc() or putc() macro then is no longer a test against zero.