23.07.2012, 00:14
x_v is simply a string that has a 256 string size. Now, strtok is used to find what is typed AFTER a space, so this code simply states that if the player does not type in anything after a space (or does not type a space) it will sow the message.
EDIT: More on strtok can be found HERE
EDIT2: Forgot about the strlen part, strlen is used to get the length of the string, so lets say the string is test, the length is 4. Now, what it is checking is if there is no size, meaning it is 0, and so it will show the message.
EDIT: More on strtok can be found HERE
EDIT2: Forgot about the strlen part, strlen is used to get the length of the string, so lets say the string is test, the length is 4. Now, what it is checking is if there is no size, meaning it is 0, and so it will show the message.