strcmp + empty string = FAIL
#1

Ok im working on some kinda map system and sometimes i gave a empty strings so when i use strcmp
and i compare empty string with something strcmp return me 0 (strings are same) WTF?
I also tried to add length but still same bug...anyone can confirm these?

Im using 0.3c R5 Windows x86 (32bit)
Reply
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
That has ALWAYS been the case - look at the ORIGINAL code for DCMD for one proof of this!
Well why does it do that? Maybe you can try explain me
I just dont get it....

[EDIT]And how to avoid these? I get idea to set all strings to None or something like that but than i will need to add more strcmp's and it will slow down my script to much since sometimes i loop even 20-30 times with strcmp in it...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)