Re: [ Buffers Off-Topic? ] Advice about Buffers...

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 10/06/97

On Mon, 6 Oct 1997, David Klasinc wrote:

>sprintf() sucks... this is nicer.. ;>

sprintf() doesn't suck, sprintf+log, sprintf+mudlog, sprintf+etc sucks.

>> release_buffer() doesn't free memory, ever.  The only way to free a buffer
>> is for it to be unused for a period of time (or if you explicitly kill it)
>But, But... Hm, do you have any docs about this? :) So I won't be posting
>messages to the list?

I think the README included in the patch covers it but I forgot what I
wrote. :)

>if (!docs)
>  ask("How much memory is then assigned? What if you need more?");

If you need more, ask for it.  If such a buffer doesn't exist, it is
created.  Most of the time it will find a suitable buffer.

>> send_to_charf is admittedly odd looking but it fits printf and fprintf and
>> family.
>it is odd... it has to fly.. ;>

I didn't want to break things so I made the distinction...

George Greer  -   | 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