From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Subject: Re: [9fans] Bgetrune while(i>runesize) loop From: "Russ Cox" Date: Thu, 10 Jul 2008 14:53:58 -0400 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20080710185217.6F0201E8C22@holo.morphisms.net> Topicbox-Message-UUID: e19ab6a0-ead3-11e9-9d60-3106f5b1d025 > Hello. I was looking at the code for the Bgetrune function trying to > implement a readrune() around read(). It works, but without a > counterpart for this: > > while(i > bp->runesize) { > Bungetc(bp); > i--; > } > > What is the point of that loop? Thanks. Use "\xE0\x00\x00" as your input and you will find out. Russ