Enum loop string
#2

A for-loop ALWAYS has three parts separated by semicolons: the initializer, the condition and the increment. Any part can be omitted but the two semicolons must always be there. That's what the error is complaining about.

Some more points of thought: you don't need to use sscanf if you only expect string input. Secondly, you can't possibly know if there aren't any free slots before you have checked them all. If slot 0 happens to be filled the message will be sent even though other slots may be empty.
Reply


Messages In This Thread
Enum loop string - by GranaT3 - 25.10.2015, 22:01
Re: Enum loop string - by Vince - 25.10.2015, 22:26

Forum Jump:


Users browsing this thread: 1 Guest(s)