new in pawno, help
#10

Quote:
Originally Posted by fiha4155
View Post
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?
Yes, just compare characters as integers.
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).
Reply


Messages In This Thread
new in pawno, help - by fiha4155 - 16.06.2017, 02:33
Re: new in pawno, help - by Vince - 16.06.2017, 09:11
Re: new in pawno, help - by fiha4155 - 17.06.2017, 16:54
Re: new in pawno, help - by Vince - 17.06.2017, 18:29
Re: new in pawno, help - by DRIFT_HUNTER - 17.06.2017, 19:50
Re: new in pawno, help - by OneDay - 18.06.2017, 07:08
Re: new in pawno, help - by fiha4155 - 18.06.2017, 11:09
Re: new in pawno, help - by Dayrion - 18.06.2017, 11:14
Re: new in pawno, help - by fiha4155 - 18.06.2017, 11:26
Re: new in pawno, help - by DRIFT_HUNTER - 18.06.2017, 11:49
Re: new in pawno, help - by fiha4155 - 18.06.2017, 11:55
Re: new in pawno, help - by BigETI - 18.06.2017, 18:21

Forum Jump:


Users browsing this thread: 4 Guest(s)