report command
#4

Quote:
Originally Posted by JaTochNietDan
View Post
Well for one thing why are you using strtok and creating a new variable to store the parameters from cmdtext, especially when cmdtext isn't in that scope? You have params[] in that scope, which is what you're trying to use strtok to extract from cmdtext (which doesn't exist in that scope) and then store in tmp3!

So instead of tmp3 or strtok, why not just use params directly?
Oh and you would be better off using sscanf with DCMD/ZCMD. It's so much easier and definitely makes the code look better.
Reply


Messages In This Thread
report command - by Face9000 - 17.12.2010, 15:50
Re: report command - by Scenario - 17.12.2010, 15:53
Re: report command - by JaTochNietDan - 17.12.2010, 15:56
Re: report command - by Scenario - 17.12.2010, 15:57
Re: report command - by Face9000 - 17.12.2010, 16:07
Re: report command - by Scenario - 17.12.2010, 16:10
Re: report command - by WillyP - 17.12.2010, 16:10

Forum Jump:


Users browsing this thread: 1 Guest(s)