/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/gdb/gnulib/ |
H A D | memmem.c | 45 const unsigned char *haystack = (const unsigned char *) haystack_start; local 51 return (void *) haystack; 59 size of haystack using a linear algorithm with a smaller 64 haystack = memchr (haystack, *needle, haystack_len); 65 if (!haystack || __builtin_expect (needle_len == 1, 0)) 66 return (void *) haystack; 67 haystack_len -= haystack - (const unsigned char *) haystack_start; 70 return two_way_short_needle (haystack, haystack_len, needle, needle_len); 73 return two_way_long_needle (haystack, haystack_le [all...] |
H A D | str-two-way.h | 212 two_way_short_needle (const unsigned char *haystack, size_t haystack_len, argument 234 while (AVAILABLE (haystack, haystack_len, j, needle_len)) 239 == CANON_ELEMENT (haystack[i + j]))) 246 == CANON_ELEMENT (haystack[i + j]))) 249 return (RETURN_TYPE) (haystack + j); 268 while (AVAILABLE (haystack, haystack_len, j, needle_len)) 273 == CANON_ELEMENT (haystack[i + j]))) 280 == CANON_ELEMENT (haystack[i + j]))) 283 return (RETURN_TYPE) (haystack + j); 306 two_way_long_needle (const unsigned char *haystack, size_ argument [all...] |
H A D | string.in.h | 516 _GL_FUNCDECL_RPL (strstr, char *, (const char *haystack, const char *needle) 519 _GL_CXXALIAS_RPL (strstr, char *, (const char *haystack, const char *needle)); 525 char *, (const char *haystack, const char *needle), 526 const char *, (const char *haystack, const char *needle)); 530 _GL_CXXALIASWARN1 (strstr, char *, (char *haystack, const char *needle)); 532 (const char *haystack, const char *needle)); 558 (const char *haystack, const char *needle) 561 (const char *haystack, const char *needle)); 565 (const char *haystack, const char *needle) 572 char *, (const char *haystack, cons [all...] |
/netbsd-6-1-5-RELEASE/gnu/dist/gettext/gettext-tools/lib/ |
H A D | strstr.h | 30 extern char *strstr (const char *haystack, const char *needle);
|
H A D | strstr.c | 40 register const unsigned char *haystack, *needle; local 43 haystack = (const unsigned char *) phaystack; 49 haystack--; /* possible ANSI violation */ 52 c = *++haystack; 71 a = *++haystack; 76 a = *++haystack; 82 jin: a = *++haystack; 89 rhaystack = haystack-- + 1; 116 return (char*) haystack;
|
/netbsd-6-1-5-RELEASE/external/gpl2/xcvs/dist/lib/ |
H A D | strstr.h | 33 extern char *strstr (const char *haystack, const char *needle);
|
H A D | strstr.c | 34 strstr (const char *haystack, const char *needle) argument 36 /* Be careful not to look at the entire extent of haystack or needle 38 - haystack may be very long, and a match of needle found early, 40 needle may be found in haystack. */ 51 mbui_init (iter_haystack, haystack); 88 return (char *) haystack; 99 for (;; haystack++) 101 if (*haystack == '\0') 104 if (*haystack == b) 107 const char *rhaystack = haystack [all...] |
/netbsd-6-1-5-RELEASE/external/gpl3/binutils/dist/libiberty/ |
H A D | memmem.c | 20 @deftypefn Supplemental void* memmem (const void *@var{haystack}, size_t @var{haystack_len} const void *@var{needle}, size_t @var{needle_len}) 23 @var{needle_len}) in @var{haystack} (length @var{haystack_len}). 45 memmem (const void *haystack, size_t haystack_len, const void *needle, argument 50 = (const char *) haystack + haystack_len - needle_len; 55 return (void *) haystack; 62 for (begin = (const char *) haystack; begin <= last_possible; ++begin)
|
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libiberty/ |
H A D | memmem.c | 20 @deftypefn Supplemental void* memmem (const void *@var{haystack}, size_t @var{haystack_len} const void *@var{needle}, size_t @var{needle_len}) 23 @var{needle_len}) in @var{haystack} (length @var{haystack_len}). 45 memmem (const void *haystack, size_t haystack_len, const void *needle, argument 50 = (const char *) haystack + haystack_len - needle_len; 55 return (void *) haystack; 62 for (begin = (const char *) haystack; begin <= last_possible; ++begin)
|
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/libiberty/ |
H A D | memmem.c | 20 @deftypefn Supplemental void* memmem (const void *@var{haystack}, @ 24 @var{needle_len}) in @var{haystack} (length @var{haystack_len}). 46 memmem (const void *haystack, size_t haystack_len, const void *needle, argument 51 = (const char *) haystack + haystack_len - needle_len; 56 return (void *) haystack; 63 for (begin = (const char *) haystack; begin <= last_possible; ++begin)
|
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/demos/tunala/ |
H A D | breakage.c | 41 char *int_strstr(const char *haystack, const char *needle) argument 43 const char *sub_haystack = haystack, *sub_needle = needle; 46 return haystack; 47 if(!haystack)
|
H A D | tunala.h | 212 char *int_strstr(const char *haystack, const char *needle);
|
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/src/utils/ |
H A D | os_internal.c | 443 char * os_strstr(const char *haystack, const char *needle) argument 446 while (*haystack) { 447 if (os_strncmp(haystack, needle, len) == 0) 448 return (char *) haystack; 449 haystack++;
|
H A D | os_none.c | 216 char * os_strstr(const char *haystack, const char *needle) argument
|
H A D | os.h | 351 * @haystack: String (haystack) to search from 352 * @needle: Needle to search from haystack 355 char * os_strstr(const char *haystack, const char *needle);
|
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libmudflap/ |
H A D | mf-hooks2.c | 376 WRAPPER2(char *, strstr, const char *haystack, const char *needle) argument 381 haystack_sz = strlen (haystack); 383 MF_VALIDATE_EXTENT(haystack, CLAMPADD(haystack_sz, 1), __MF_CHECK_READ, "strstr haystack"); 385 return strstr (haystack, needle); 391 const void *haystack, size_t haystacklen, 395 MF_VALIDATE_EXTENT(haystack, haystacklen, __MF_CHECK_READ, "memmem haystack"); 397 return memmem (haystack, haystacklen, needle, needlelen); 390 WRAPPER2(void *, memmem, const void *haystack, size_t haystacklen, const void *needle, size_t needlelen) argument
|
/netbsd-6-1-5-RELEASE/external/gpl3/binutils/dist/ld/ |
H A D | ldlang.c | 2829 /* Remove the first occurrence of needle (if any) in haystack 2830 from haystack. */ 2833 strcut (char *haystack, char *needle) 2835 haystack = strstr (haystack, needle); 2837 if (haystack) 2841 for (src = haystack + strlen (needle); *src;) 2842 *haystack++ = *src++; 2844 *haystack = 0; 2831 strcut(char *haystack, char *needle) argument
|
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/gdb/ |
H A D | configure | 6050 char *haystack = (char *) malloc (2 * m + 1); 6058 if (haystack && needle) 6060 memset (haystack, 'A', 2 * m); 6061 haystack[2 * m] = 'B'; 6064 result = memmem (haystack, 2 * m + 1, needle, m + 1);
|