At 04:29 PM 9/10/2003 +0000, Harold Hallikainen wrote: >The counter is an EXCELLENT idea! However, instead of initializing at zero, how about initializing at the buffer length. On putting something in the buffer, decrement it. On taking something out, increment it. The counter then indicates how much room is left in the buffer. If you've got a string to stick in the buffer, you now know whether it will fit before starting to stuff it in the buffer. never thought of that /vbg/ great idea. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics