Let's suppose "mark" equals 15.
I understand the search function begins looking in line 15 for the next occurance of the word passed to the function. If the word DOES occur in line 15, should the function just return 15?
Also, if the word occurs multiple times in line 15, then is it okay for the search function to simply stop at the first occurrence? (This wouldn't make for a very robust "next occurrence" search algorithm, in real life.) |