> 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?
You want:
if (!str_cmp(buf, "all")) {
}
Look in utils.c for the documentation:
/* str_cmp: a case-insensitive version of strcmp */
/* returns: 0 if equal, 1 if arg1 > arg2, -1 if arg1 < arg2 */
/* scan 'till found different or end of both */
int str_cmp(char *arg1, char *arg2)
{
....
}
--
Zeavon Calatin, Spear of Insanity
spear.kilnar.com:1066
http://www.kilnar.com/spear/
+------------------------------------------------------------+
| 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