Re: Problem with Arguments

From: Ray (ruppertr@SNYCORVA.CORTLAND.EDU)
Date: 09/19/97


On Fri, 19 Sep 1997, Cris Jacobin wrote:

[snip!]
>    argument = one_argument(argument, itm_name);
>
>      if (itm_name=="brown") {

This should be
       if !strcmp(itm_name,"brown") {

You can't use == normally on strings (it doesn't mean what you think it
means. :) )

To mangle a line from The Princess Bride,
                                        Ray


     +------------------------------------------------------------+
     | 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/08/00 PST