strfind won't work
#2

Strfind returns -1 on failure, not 0, so when you do if(strfind(a, "b", true)) it will return true even for -1. You need to use (strfind(a, "b", true) != -1)
Reply


Messages In This Thread
strfind won't work - by Extasy4 - 13.08.2013, 16:57
Re: strfind won't work - by Misiur - 13.08.2013, 17:00
Re: strfind won't work - by Extasy4 - 13.08.2013, 17:14
Re: strfind won't work - by Misiur - 13.08.2013, 17:23
Re: strfind won't work - by Extasy4 - 13.08.2013, 17:29
Re: strfind won't work - by Extasy4 - 13.08.2013, 17:34
Re: strfind won't work - by Misiur - 15.08.2013, 12:06
Re: strfind won't work - by Extasy4 - 15.08.2013, 13:21
Re: strfind won't work - by Extasy4 - 17.08.2013, 21:31
Re: strfind won't work - by cessil - 17.08.2013, 22:08

Forum Jump:


Users browsing this thread: 2 Guest(s)