TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: JAMES VAHN
from: TIM HUTZLER
date: 1998-01-21 18:32:00
subject: Re: circular buffer

-=>Quoting James Vahn to Darryl Gregorash <=-
??>Ummm.. a stack _is_ a LIFO buffer.. you read from and write to the stack
??>using the "head" pointer. If you re-read, I said "write at the tail, read
??>from the head", and that is a FIFO buffer, a queue.
JV>LIFO,FIFO... the thing is in a circle. What if I'm reading at the
JV>middle of it and a byte comes in?  Always drop it on the oldest byte,
JV>reading has nothing to do with that. You're going to need some more
JV>pointers.
Two is suffient.
___ Blue Wave/QWK v2.12
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 530-893-8079 * (1:119/88)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.