On Wed, 20 Aug 1997, Jeremy Elson wrote: >George writes: >>If does a strlen() upon release_buffer() if you're wondering. > >That only tells you the size of the string most recently used - not >the largest string that was ever put into the buffer during its >lifetime. Maybe you could initialize the entire buffer to \0's when >it is given to the caller, then have release_buffer find the last >non-null character. PARANOID_BUFFER setting initializes it to all 0's already. Many functions do all their output and then return so the strlen was the first step. (do_score, get_line, etc) -- greerga@muohio.edu me@null.net | Genius may have its limitations, but stupidity http://www.muohio.edu/~greerga | is not thus handicapped. -- Elbert Hubbard +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST