From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 2 Jan 2008 22:51:28 +0100 From: Martin Neubauer To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] bungetc error Message-ID: <20080102215128.GB810@shodan.homeunix.net> References: <16287bc4-e635-4d1d-9ede-2f3f02c8e8ae@f52g2000hsa.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16287bc4-e635-4d1d-9ede-2f3f02c8e8ae@f52g2000hsa.googlegroups.com> User-Agent: Mutt/1.4.2.3i Topicbox-Message-UUID: 251c7c48-ead3-11e9-9d60-3106f5b1d025 * smahapatra_ct@yahoo.com (smahapatra_ct@yahoo.com) wrote: > I think after bgetc returns Beof, bungetc should change the state, but > not decrement bp->icount. I don't think so. Bungetc ungets the last character read, not Beof.