Searched defs:needle (Results 1 - 5 of 5) sorted by relevance

/osnet-11/usr/src/grub/grub2/include/grub/
H A Dmisc.h123 grub_strstr (const char *haystack, const char *needle) argument
125 /* Be careful not to look at the entire extent of haystack or needle
127 - haystack may be very long, and a match of needle found early,
128 - needle may be very long, and not even a short initial segment of
129 needle may be found in haystack. */
130 if (*needle != '\0')
132 /* Speed up the following searches of needle by caching its first
134 char b = *needle++;
145 const char *rneedle = needle;
/osnet-11/usr/src/grub/grub2/grub-core/kern/
H A Dmisc.c320 grub_strword (const char *haystack, const char *needle) argument
322 const char *n_pos = needle;
329 /* Crawl both the needle and the haystack word we're on. */
339 next word (or the end of string) and "reset" the needle. */
345 n_pos = needle;
/osnet-11/usr/src/cmd/sendmail/src/
H A Dusersmtp.c1497 char *needle; local
1509 if ((needle = iteminlist(rem, list, " ")) == NULL)
1527 memcpy(ret, list, needle - list);
1530 len = strlen(needle) - strlen(rem) - 1;
1534 memcpy(ret + (needle - list),
1535 list + (needle - list) + strlen(rem) + 1,
1539 ret[(needle - list) - 1] = '\0';
/osnet-11/usr/src/cmd/hal/hald/
H A Ddevice_info.c564 const char *needle; local
567 needle = attr[3];
574 if (needle != NULL && haystack != NULL && strstr (haystack, needle)) {
580 needle != NULL) {
587 if (strcmp (str, needle) == 0) {
598 const char *needle; local
601 needle = attr[3];
608 needle_lowercase = g_utf8_strdown (needle, -1);
618 needle !
[all...]
/osnet-11/usr/src/lib/libparted/common/libparted/labels/
H A Dmac.c385 strncasestr (const char* haystack, const char* needle, int n) argument
387 int needle_size = strlen (needle);
391 if (strncasecmp (haystack + i, needle, needle_size) == 0)

Completed in 76 milliseconds