9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Bgetrune while(i>runesize) loop
@ 2008-07-10 18:13 Pietro Gagliardi
  2008-07-10 18:53 ` Russ Cox
  0 siblings, 1 reply; 4+ messages in thread
From: Pietro Gagliardi @ 2008-07-10 18:13 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-07-10 20:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-10 18:13 [9fans] Bgetrune while(i>runesize) loop Pietro Gagliardi
2008-07-10 18:53 ` Russ Cox
2008-07-10 20:18   ` Pietro Gagliardi
2008-07-10 20:45     ` Russ Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).