Lines Matching defs:needle
66 /* Check that a very long haystack is handled quickly if the needle is
71 char *needle =
83 ASSERT (mbsstr (haystack, needle) == haystack + 1);
90 /* Check that a very long needle is discarded quickly if the haystack is
98 char *needle = (char *) malloc (m + 1);
99 if (needle != NULL)
101 memset (needle, 'A', m);
102 needle[m] = '\0';
106 ASSERT (mbsstr (haystack, needle) == NULL);
109 free (needle);
117 char *needle = (char *) malloc (m + 2);
118 if (haystack != NULL && needle != NULL)
126 memset (needle, 'A', m);
127 needle[m] = 'B';
128 needle[m + 1] = '\0';
130 result = mbsstr (haystack, needle);
133 if (needle != NULL)
134 free (needle);