Re: [CODE] More arguments :( from "John Evans" at Oct 3, 97 09:29:09 pm

From: Aaron Miller (Tarus50@CONCENTRIC.NET)
Date: 10/04/97


Ok, heres the code

skip_spaces(&argument);
one_argument(argument, buf);
argu = atoi(buf);

sprintf(buf, "Numerical Argument: %d", argu);
send_to_char(buf, ch);


Now, I know very well what atoi does. I want to print 0 if its not
a number, or otherwise print the number. It is printing 0 always.
Btw argu is an int.


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