Lines Matching defs:needle
75 /* Check that a very long haystack is handled quickly if the needle is
80 char *needle =
92 ASSERT (mbsstr (haystack, needle) == haystack + 2);
99 /* Check that a very long needle is discarded quickly if the haystack is
111 char *needle = (char *) malloc (m + 1);
112 if (needle != NULL)
114 memset (needle, 'A', m);
115 needle[m] = '\0';
119 ASSERT (mbsstr (haystack, needle) == NULL);
122 free (needle);
130 char *needle = (char *) malloc (m + 3);
131 if (haystack != NULL && needle != NULL)
139 memset (needle, 'A', m);
140 needle[m] = '\303'; needle[m + 1] = '\207';
141 needle[m + 2] = '\0';
143 result = mbsstr (haystack, needle);
146 if (needle != NULL)
147 free (needle);