Re: Strings...

From: Leonardo Herrera (leherrer@ENTELCHILE.NET)
Date: 02/19/98


blah wrote:
>    char *mname;
>    char *mshort_descr;
>    char *mlong_descr;
>    char *mdescription;
>
> Etc... Basically I use str_dup to set those strings to whatever the player

If you use str_dup, yeah.

if ( mname ) {
  free( mname );
  mname = NULL;
}


--
Leonardo Herrera L.
mailto:leherrer@entelchile.net
http://www.geocities.com/TimesSquare/Castle/4515/
  "Me voy a subai, me voy a costai, me voy a tapai y
me voy a hacei tuto."
        -- Ruy


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