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