18.06.2017, 11:49
Quote:
I get what you say, but my question was isn't it a bit awkward to say like "a character is bigger than a space". How pawn compare them itself? With comparing the ASCII numbers of them?
|
By the way, with strcmp, there is a small logic stupidity. If strings are same, function will return 0. If first string finishes before its completely compared to second one, it will return -1, or 1 if second string finished before first. But, what if one of them is empty (length is 0)? Well function will return 0 (as if the strings were the same).