/freebsd-current/lib/libc/string/ |
H A D | strcmp.c | 41 strcmp(const char *s1, const char *s2) argument 43 while (*s1 == *s2++) 46 return (*(const unsigned char *)s1 - *(const unsigned char *)(s2 - 1));
|
H A D | wcscmp.c | 44 wcscmp(const wchar_t *s1, const wchar_t *s2) argument 47 while (*s1 == *s2++) 51 return (*(const unsigned int *)s1 - *(const unsigned int *)--s2);
|
H A D | strncmp.c | 35 strncmp(const char *s1, const char *s2, size_t n) argument 41 if (*s1 != *s2++) 43 *(const unsigned char *)(s2 - 1));
|
H A D | wcsncmp.c | 37 wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument 43 if (*s1 != *s2++) { 46 *(const unsigned int *)--s2);
|
H A D | wmemcmp.c | 40 wmemcmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument 45 if (*s1 != *s2) { 47 return *s1 > *s2 ? 1 : -1; 50 s2++;
|
H A D | wcsncasecmp.c | 33 wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument 39 for (; *s1; s1++, s2++) { 41 c2 = towlower(*s2); 47 return (-*s2);
|
H A D | wcscasecmp.c | 33 wcscasecmp(const wchar_t *s1, const wchar_t *s2) argument 37 for (; *s1; s1++, s2++) { 39 c2 = towlower(*s2); 43 return (-*s2);
|
H A D | strpbrk.c | 35 * Find the first occurrence in s1 of a character in s2 (excluding NUL). 38 strpbrk(const char *s1, const char *s2) argument 44 for (scanp = s2; (sc = *scanp++) != '\0';)
|
H A D | strcasecmp.c | 42 strcasecmp_l(const char *s1, const char *s2, locale_t locale) argument 46 *us2 = (const u_char *)s2; 55 strcasecmp(const char *s1, const char *s2) argument 57 return strcasecmp_l(s1, s2, __get_locale()); 61 strncasecmp_l(const char *s1, const char *s2, size_t n, locale_t locale) argument 67 *us2 = (const u_char *)s2; 80 strncasecmp(const char *s1, const char *s2, size_t n) argument 82 return strncasecmp_l(s1, s2, n, __get_locale());
|
H A D | memcmp.c | 41 memcmp(const void *s1, const void *s2, size_t n) argument 44 const unsigned char *p1 = s1, *p2 = s2;
|
/freebsd-current/contrib/openpam/lib/libpam/ |
H A D | openpam_strlcmp.h | 36 strlcmp(const char *s1, const char *s2, size_t len) argument 39 for (; len && *s1 && *s2; --len, ++s1, ++s2) 40 if (*s1 != *s2) 41 return ((unsigned char)*s1 - (unsigned char)*s2);
|
/freebsd-current/sys/libkern/ |
H A D | strcmp.c | 42 (strcmp)(const char *s1, const char *s2) argument 44 while (*s1 == *s2++) 47 return (*(const unsigned char *)s1 - *(const unsigned char *)(s2 - 1));
|
H A D | strncmp.c | 36 strncmp(const char *s1, const char *s2, size_t n) argument 42 if (*s1 != *s2++) 44 *(const unsigned char *)(s2 - 1));
|
/freebsd-current/lib/libc/locale/ |
H A D | collcmp.c | 44 char s1[2], s2[2]; local 48 s2[0] = c2; 49 s2[1] = '\0'; 50 return (strcoll(s1, s2)); 55 wchar_t s1[2], s2[2]; local 59 s2[0] = c2; 60 s2[1] = L'\0'; 61 return (wcscoll(s1, s2));
|
/freebsd-current/bin/sh/ |
H A D | mystring.h | 40 #define equal(s1, s2) (strcmp(s1, s2) == 0)
|
/freebsd-current/contrib/sendmail/libsm/ |
H A D | t-strrevcmp.c | 24 char *s2; local 29 s2 = "equal"; 30 SM_TEST(sm_strrevcmp(s1, s2) == 0); 33 s2 = "qual"; 34 SM_TEST(sm_strrevcmp(s1, s2) > 0); 37 s2 = "equal"; 38 SM_TEST(sm_strrevcmp(s1, s2) < 0); 41 s2 = "equal"; 42 SM_TEST(sm_strrevcmp(s1, s2) < 0); 45 s2 [all...] |
H A D | strrevcmp.c | 26 ** s2 -- second string. 29 ** strcasecmp(reverse(s1), reverse(s2)) 33 sm_strrevcasecmp(s1, s2) 34 const char *s1, *s2; 39 i2 = strlen(s2) - 1; 42 charmap[(unsigned char) s2[i2]]) 60 charmap[(unsigned char) s2[i2]]); 68 ** s2 -- second string. 71 ** strcmp(reverse(s1), reverse(s2)) 75 sm_strrevcmp(s1, s2) [all...] |
H A D | strcaseeq.c | 24 ** s2 -- string 27 ** true iff s1 == s2 31 sm_strcaseeq(s1, s2) 33 const char *s2; 41 if (!asciistr(s2)) 43 return (sm_strcasecmp(s1, s2) == 0); 45 if (asciistr(s2)) 55 l2 = sm_lowercase(s2); 70 ** s2 -- string 74 ** true iff s1 == s2 (fo [all...] |
/freebsd-current/contrib/ntp/sntp/libpkgver/ |
H A D | colcomp.c | 37 colcomp (s1, s2) 39 register char *s2; 43 while (*s1 && *s2) 46 && MyIsDigit(*s2)) 48 hilo = (*s1 < *s2) ? -1 : (*s1 > *s2) ? 1 : 0; 50 ++s2; 52 && MyIsDigit(*s2)) 55 hilo = (*s1 < *s2) ? -1 : (*s1 > *s2) [all...] |
/freebsd-current/contrib/diff/lib/ |
H A D | strcase.h | 27 extern int strcasecmp (const char *s1, const char *s2); 33 extern int strncasecmp (const char *s1, const char *s2, size_t n);
|
/freebsd-current/crypto/heimdal/lib/roken/ |
H A D | strcasecmp.c | 44 strcasecmp(const char *s1, const char *s2) argument 46 while(toupper((unsigned char)*s1) == toupper((unsigned char)*s2)) { 50 s2++; 52 return toupper((unsigned char)*s1) - toupper((unsigned char)*s2);
|
H A D | strncasecmp.c | 43 strncasecmp(const char *s1, const char *s2, size_t n) argument 46 && toupper((unsigned char)*s1) == toupper((unsigned char)*s2)) 51 s2++; 56 return toupper((unsigned char)*s1) - toupper((unsigned char)*s2);
|
/freebsd-current/usr.bin/sort/ |
H A D | vsort.h | 36 int vcmp(struct bwstring *s1, struct bwstring *s2);
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerInterceptors.cpp | 62 static int internal_strcmp_strncmp(const char *s1, const char *s2, bool strncmp, argument 72 unsigned c2 = *s2; 78 s2++; 83 static int internal_strncmp(const char *s1, const char *s2, size_t n) { argument 84 return internal_strcmp_strncmp(s1, s2, true, n); 87 static int internal_strcmp(const char *s1, const char *s2) { argument 88 return internal_strcmp_strncmp(s1, s2, false, 0); 91 static int internal_memcmp(const void *s1, const void *s2, size_t n) { argument 93 const uint8_t *t2 = static_cast<const uint8_t *>(s2); 125 const void *s2, size_ 151 bcmp(const char *s1, const char *s2, size_t n) argument 155 __sanitizer_weak_hook_memcmp(GET_CALLER_PC(), s1, s2, n, result); local 159 memcmp(const void *s1, const void *s2, size_t n) argument 163 __sanitizer_weak_hook_memcmp(GET_CALLER_PC(), s1, s2, n, result); local 167 strncmp(const char *s1, const char *s2, size_t n) argument 171 __sanitizer_weak_hook_strncmp(GET_CALLER_PC(), s1, s2, n, result); local 175 strcmp(const char *s1, const char *s2) argument 179 __sanitizer_weak_hook_strcmp(GET_CALLER_PC(), s1, s2, result); local 183 strncasecmp(const char *s1, const char *s2, size_t n) argument 186 __sanitizer_weak_hook_strncasecmp(GET_CALLER_PC(), s1, s2, n, result); local 190 strcasecmp(const char *s1, const char *s2) argument 193 __sanitizer_weak_hook_strcasecmp(GET_CALLER_PC(), s1, s2, result); local 197 strstr(const char *s1, const char *s2) argument 201 __sanitizer_weak_hook_strstr(GET_CALLER_PC(), s1, s2, result); local 205 strcasestr(const char *s1, const char *s2) argument 208 __sanitizer_weak_hook_strcasestr(GET_CALLER_PC(), s1, s2, result); local 213 memmem(const void *s1, size_t len1, const void *s2, size_t len2) argument 216 __sanitizer_weak_hook_memmem(GET_CALLER_PC(), s1, len1, s2, len2, result); local [all...] |
/freebsd-current/sys/contrib/libsodium/test/quirks/ |
H A D | quirks.h | 25 # define strcmp(s1, s2) xstrcmp(s1, s2) 28 strcmp(const char *s1, const char *s2) argument 30 while (*s1 == *s2++) { 35 return *(unsigned char *) s1 - *(unsigned char *) --s2;
|