Re: Restore

From: George Greer (greerga@circlemud.org)
Date: 04/03/99


On Sat, 3 Apr 1999, 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?

It's always true unless you type "all".  I'll leave you and your C book to
figure out why.

Hint: str_cmp = strcmp, behavior-wise except for case sensitivity.

--
George Greer            | Shirak's CircleMUD for Windows help
greerga@circlemud.org   | http://www.connect.ab.ca/~rbmstrk/


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