Searched refs:s2 (Results 1 - 25 of 471) sorted by relevance

1234567891011>>

/freebsd-current/lib/libc/string/
H A Dstrcmp.c41 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 Dwcscmp.c44 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 Dstrncmp.c35 strncmp(const char *s1, const char *s2, size_t n) argument
41 if (*s1 != *s2++)
43 *(const unsigned char *)(s2 - 1));
H A Dwcsncmp.c37 wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument
43 if (*s1 != *s2++) {
46 *(const unsigned int *)--s2);
H A Dwmemcmp.c40 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 Dwcsncasecmp.c33 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 Dwcscasecmp.c33 wcscasecmp(const wchar_t *s1, const wchar_t *s2) argument
37 for (; *s1; s1++, s2++) {
39 c2 = towlower(*s2);
43 return (-*s2);
H A Dstrpbrk.c35 * 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 Dstrcasecmp.c42 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 Dmemcmp.c41 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 Dopenpam_strlcmp.h36 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 Dstrcmp.c42 (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 Dstrncmp.c36 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 Dcollcmp.c44 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 Dmystring.h40 #define equal(s1, s2) (strcmp(s1, s2) == 0)
/freebsd-current/contrib/sendmail/libsm/
H A Dt-strrevcmp.c24 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 Dstrrevcmp.c26 ** 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 Dstrcaseeq.c24 ** 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 Dcolcomp.c37 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 Dstrcase.h27 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 Dstrcasecmp.c44 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 Dstrncasecmp.c43 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 Dvsort.h36 int vcmp(struct bwstring *s1, struct bwstring *s2);
/freebsd-current/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerInterceptors.cpp62 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 Dquirks.h25 # 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;

Completed in 202 milliseconds

1234567891011>>