Comparing two strings.
#4

Quote:
Originally Posted by nerovani
Посмотреть сообщение
Both strings have the lenght of "MAX_PLAYER_NAME".
Their maximum length is 24 (MAX_PLAYER_NAME), but not their actual lengths, since not all player names have 24 characters.
If noone owns the car and you didnt put anything into the array, it will be empty (NULL) and lead to strcmp returning 0.
Reply


Messages In This Thread
Comparing two strings. - by nerovani - 24.03.2016, 09:35
Re: Comparing two strings. - by NaS - 24.03.2016, 09:47
Re: Comparing two strings. - by nerovani - 24.03.2016, 09:49
Re: Comparing two strings. - by NaS - 24.03.2016, 10:11
Re: Comparing two strings. - by Konstantinos - 24.03.2016, 10:13
Re: Comparing two strings. - by Dokins - 24.03.2016, 10:43
Re: Comparing two strings. - by nerovani - 24.03.2016, 11:05

Forum Jump:


Users browsing this thread: 1 Guest(s)