Thank you! You finally understand :-P
well, I did think of that, but I was wondering (seeing as
how the strings are str_dup'd) is there something I could do
about that?
like free_char_strings() or some such?
or should I just right one and hope that it works?
just wondering :-)
thanks.
Code On
Akuma the Raging Coder
At 10:07 PM 3/16/98 -0500, you wrote:
>On Mon, 16 Mar 1998, Akuma/Chris Baggett/DOOMer wrote:
>
>>I mentioned in my original post that I was using ASCII pfiles.
>>so I no longer use fwrite/seek/etc.
>
>Ah ok, in that case, the best thing to do is this:
>
>struct char_data chst;
>
>for (...) {
> load_char(&chst);
> ...doo stuff...
>}
>
>Then you don't have to worry about free/malloc.
>
>--
>George Greer - Me@Null.net | Genius may have its limitations, but
stupidity
>http://www.van.ml.org/~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 |
> +------------------------------------------------------------+
>
>
+------------------------------------------------------------+
| "The poets talk about love, but what I talk about is DOOM, |
| because in the end, DOOM is all that counts." - |
| Alex Machine/George Stark/Stephen King, The Dark Half |
| "Nothing is IMPOSSIBLE, Just IMPROBABLE" |
| "Easier Said Than Done, But Better Done Than Said..." |
+------------------------------------------------------------+
+------------------------------------------------------------+
| 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/15/00 PST