Re: Memory usage

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 08/21/97

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)

-- | Genius may have its limitations, but stupidity | is not thus handicapped. -- Elbert Hubbard

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/08/00 PST