Re: Restore

From: Randell Hodges (rhodges@home.com)
Date: 04/03/99


If you read up about str_cmp you'll find that when they are the same it'll return
0, so basically
you have if (0) which is not what you want.  Try if(!str_cmp(buf, "all")


Randell H.

Albert Brauneis wrote:

> I wanted to add to restore the capability to type restore all and it would do
> so. I added the code to do it but it seems no matter what I do it will not go
> to that part of the code. This is what I had to check for it in
> ACMD(do_restore)
>
> if (str_cmp("all",buf))
>
> That seems never to be true. Why is that?
>
> Albert
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
>      +------------------------------------------------------------+


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



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