a string len of at least 6: the reason for this is that "init X" has at least 6 chars?
I know that this apporach is common in riot but I would be happy to see this approach:

calling strtok once you get the command name, no big deal. calling it again you get a char or null (for a parameter of init). you can check for null of the result of the second strtok call.