17.12.2010, 15:57
Quote:
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? |