Re: Trying to detect no arg in spell

From: George Greer (greerga@circlemud.org)
Date: 09/14/99


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



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