Help with C programming.
Your logic is a bit messed up.
You’ll exit the first time there isn’t a match.
Once you hit the first “l” you’ll check if the substr exist, it’ll return 0, and not check the next “l”.
You have to only return 0 after i == strlrn(str)
Leave this field blank: