Lines Matching refs:strstr
681 check(strstr("abcd", "z") == NULL, 1); /* Not found. */ in test_strstr()
682 check(strstr("abcd", "abx") == NULL, 2); /* Dead end. */ in test_strstr()
684 check(strstr(one, "c") == one+2, 3); /* Basic test. */ in test_strstr()
685 check(strstr(one, "bc") == one+1, 4); /* Multichar. */ in test_strstr()
686 check(strstr(one, "d") == one+3, 5); /* End of string. */ in test_strstr()
687 check(strstr(one, "cd") == one+2, 6); /* Tail of string. */ in test_strstr()
688 check(strstr(one, "abc") == one, 7); /* Beginning. */ in test_strstr()
689 check(strstr(one, "abcd") == one, 8); /* Exact match. */ in test_strstr()
690 check(strstr(one, "abcde") == NULL, 9); /* Too long. */ in test_strstr()
691 check(strstr(one, "de") == NULL, 10); /* Past end. */ in test_strstr()
692 check(strstr(one, "") == one, 11); /* Finding empty. */ in test_strstr()
694 check(strstr(one, "ba") == one+1, 12); /* Finding first. */ in test_strstr()
696 check(strstr(one, "b") == NULL, 13); /* Empty string. */ in test_strstr()
697 check(strstr(one, "") == one, 14); /* Empty in empty string. */ in test_strstr()
699 check(strstr(one, "bca") == one+2, 15); /* False start. */ in test_strstr()
701 check(strstr(one, "bbca") == one+1, 16); /* With overlap. */ in test_strstr()