Lines Matching refs:s2
935 * Find a substring of s2 that match a prefix of s1.
941 * length: the length of s1, s2.
942 * maxs: only search for match in [1,maxs] of s2.
949 _prefix(chtype *s1, chtype *s2, int length, int maxs, int *begm)
955 /* testing for s1[m] != s2[m] is condition 1 */
956 if (s1[0] == s2[m] && s1[m] != s2[m]) {
959 if (s1[k - m] != s2[k])
966 s2 += m;
969 if (s1[n] != s2[n])