strfind empty string - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: strfind empty string (
/showthread.php?tid=638565)
strfind empty string -
Bussyman - 02.08.2017
Hi,
Is there same bug as with strcmp that null strings can't strcmp, so strfind i too can't find in empty string?
Re: strfind empty string -
jlalt - 02.08.2017
Seems like no, however this is a simple thing you can test it by yourself.
PHP код:
printf("%d",strfind("P ", "", true, 0));
according to my test, it will return -1.