Re: [Circle] Check for string in do_bury

From: Brian Pape (bpape@ezl.com)
Date: 07/26/96


> It works fine excepts I need a check to make sure
> the arg is 'corpse'
> 
> How would I code a check for this, I have tried stuff life
> 
> if (arg != 'corpse')

Well, look in your C manual, which I'm sure you use religiously.  You
can't compare strings char by char like that.  You'll want to use strcmp()
or the circle case-insensitive function str_cmp()


+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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