I tried this but I'm not satisfied.
When checking for the return values with this test command "/10 20 30"
arg holds 49
r holds actually 10
and all the others 0
I'm not too sure how the code really works.
Doesn't "read_argv" already return the appropriate string?
What does
Code:
read_argv(1...
read_argv(2...
read_argv(3...
really do?
I'm under the impression, also after double checking with the docs, that it would return the first three arguments. Which would mean that "arg" holds "/10", "arg2" " 20" and "arg3" " 30".
Here btw I see why it would be necessary to trim the second and third argument.
What am I misunderstanding here?
EDIT: nvm the 49, I forgot that I %d a string instaed %s.