Re: Memory usage

From: Jeremy Elson (jelson@CIRCLEMUD.ORG)
Date: 08/20/97


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.

-je


     +------------------------------------------------------------+
     | 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