Re: Question

From: Ron Cole (rcole@ezy.net)
Date: 11/15/98


>ObCircle:
>How do we get char *'s to save in the pfile?  Do we have to put them in
>the place where things are like this?
>st->name = GET_NAME(ch);
>
>and then to reload them like this?
>
>GET_NAME(ch) = st->name;

Yes, and be careful to not overflow the string or you'll corrupt your pfile.
"char *" is a pointer to a piece of memory and is useless to store, since the
location would be freed as soon as that character is extracted.

Ron


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