Re: str_dup, CREATE(), et al

From: George (greerga@CIRCLEMUD.ORG)
Date: 03/16/98


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



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