Lines Matching refs:strstr
796 check(strstr("abcd", "z") == NULL, 1); /* Not found. */ in test_strstr()
797 check(strstr("abcd", "abx") == NULL, 2); /* Dead end. */ in test_strstr()
799 check(strstr(one, "c") == one+2, 3); /* Basic test. */ in test_strstr()
800 check(strstr(one, "bc") == one+1, 4); /* Multichar. */ in test_strstr()
801 check(strstr(one, "d") == one+3, 5); /* End of string. */ in test_strstr()
802 check(strstr(one, "cd") == one+2, 6); /* Tail of string. */ in test_strstr()
803 check(strstr(one, "abc") == one, 7); /* Beginning. */ in test_strstr()
804 check(strstr(one, "abcd") == one, 8); /* Exact match. */ in test_strstr()
805 check(strstr(one, "abcde") == NULL, 9); /* Too long. */ in test_strstr()
806 check(strstr(one, "de") == NULL, 10); /* Past end. */ in test_strstr()
807 check(strstr(one, "") == one, 11); /* Finding empty. */ in test_strstr()
809 check(strstr(one, "ba") == one+1, 12); /* Finding first. */ in test_strstr()
811 check(strstr(one, "b") == NULL, 13); /* Empty string. */ in test_strstr()
812 check(strstr(one, "") == one, 14); /* Empty in empty string. */ in test_strstr()
814 check(strstr(one, "bca") == one+2, 15); /* False start. */ in test_strstr()
816 check(strstr(one, "bbca") == one+1, 16); /* With overlap. */ in test_strstr()