> int do_grasp(struct char_data * ch, char *argument, int cmd, int subcmd)
> {
> int argu;
> /* other declarations that are irrelevent snipped */
>
> skip_spaces(&argument);
Don't need the above line.
> one_argument(&argument, buf);
Don't send one_argument the address of argument, send it argument itself:
one_argument(argument, buf);
one_argument removes any leading spaces so you don't need it :)
> argu = atoi(buf); /* i need an integer to work worth */
=--=--=--=--=--=--=--=--=--=--=
I have done so much,
with so little, James C. Thomas Jr.
for so long, Rasdan
That I can do anything Head Coder of Finality!
with nothing.
=--=--=--=--=--=--=--=--=--=--=
Finality is based upon CircleMUD 3.0, check us out:
finality.mudservices.com 5555
+------------------------------------------------------------+
| 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