12.07.2011, 23:13
First, strcmp is not a command processor, it simply compares two strings and returns 0 if they are equal or returns a positive or negative number depending on which string is "Larger."
Second, strcmp is not slow, if I had only one command on my server (and using strcmp to check typed text) it would probably be faster than any other method, it would also maintain this speed if it was at the top of the list (supposing you use else if for the rest of the commands.)
Second, strcmp is not slow, if I had only one command on my server (and using strcmp to check typed text) it would probably be faster than any other method, it would also maintain this speed if it was at the top of the list (supposing you use else if for the rest of the commands.)