From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Message-id: From: Pietro Gagliardi To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Date: Thu, 10 Jul 2008 14:13:18 -0400 Subject: [9fans] Bgetrune while(i>runesize) loop Topicbox-Message-UUID: e1953bbc-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.