Re: Trying to detect no arg in spell

From: Chuck Carson (ccarson@phi.org)
Date: 09/14/99


Yes, the is one of the options I tried
and this still would not work.

I also tried using arg and argument as well.

???
Chuck


-----Original Message-----
From: George Greer [mailto:greerga@circlemud.org]
Sent: Tuesday, September 14, 1999 4:32 PM
To: CIRCLE@post.queensu.ca
Subject: Re: Trying to detect no arg in spell


On Tue, 14 Sep 1999, Chuck Carson wrote:

>// This next check will not work
>  if (!temp) {
>     send_to_char("You must specify an attribute to enhance!\r\n", ch);
>     return;
>   }

Because you're mixing up NUL and NULL.

You want something like:

  if (!*temp)

--
George Greer            | The CircleMUD FAQ
greerga@circlemud.org   | http://developer.circlemud.org/docs/FAQ/


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