Return Entire thread

Help with C programming.

24 Name: Anonymous 2021-10-16 17:47
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)

Return Entire thread
Leave this field blank: