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

1234567891011>>

/src/lib/libc/string/
H A DLint_strcmp.c12 strcmp(const char *s1, const char *s2) argument
H A DLint_strncmp.c12 strncmp(const char *s1, const char *s2, size_t len) argument
H A Dwcscmp.c52 wcscmp(const wchar_t *s1, const wchar_t *s2) argument
56 _DIAGASSERT(s2 != NULL);
58 while (*s1 == *s2++)
62 return (*(const __nbrune_t *)s1 - *(const __nbrune_t *)--s2);
H A Dwcscpy.c40 wcscpy(wchar_t *s1, const wchar_t *s2) argument
45 _DIAGASSERT(s2 != NULL);
47 for (p = s1; (*p = *s2) != L'\0'; ++p, ++s2);
H A Dstrcoll.c57 strcoll(const char *s1, const char *s2)
60 return strcoll_l(s1, s2, _current_locale());
64 strcoll_l(const char *s1, const char *s2, locale_t loc) argument
67 _DIAGASSERT(s2 != NULL);
71 return (strcmp(s1, s2));
H A Dwmemcmp.c41 wmemcmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument
46 _DIAGASSERT(s2 != NULL);
49 if (*s1 != *s2) {
52 *(const __nbrune_t *)s2 ? 1 : -1;
55 s2++;
H A Dwcsncmp.c46 wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument
50 _DIAGASSERT(s2 != NULL);
55 if (*s1 != *s2++) {
58 *(const __nbrune_t *)--s2);
H A Dwcsncpy.c40 wcsncpy(wchar_t *s1, const wchar_t *s2, size_t n) argument
45 _DIAGASSERT(s2 != NULL);
48 while (n && *s2) {
49 *p++ = *s2++;
H A Dwcscasecmp.c30 wcscasecmp_l(const wchar_t *s1, const wchar_t *s2, locale_t loc)
37 _DIAGASSERT(s2);
41 lc2 = towlower_l(*s2, loc);
51 ++s2;
56 wcscasecmp(const wchar_t *s1, const wchar_t *s2) argument
58 return wcscasecmp_l(s1, s2, _current_locale());
H A Dwcsncasecmp.c30 wcsncasecmp_l(const wchar_t *s1, const wchar_t *s2, size_t n, locale_t loc)
37 _DIAGASSERT(s2);
41 lc2 = towlower_l(*s2, loc);
51 ++s2;
58 wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument
60 return wcsncasecmp_l(s1, s2, n, _current_locale());
H A Dwcscat.c40 wcscat(wchar_t *s1, const wchar_t *s2) argument
47 _DIAGASSERT(s2 != NULL);
53 r = s2;
/src/bin/sh/
H A Dmystring.h45 #define equal(s1, s2) (strcmp(s1, s2) == 0)
46 #define scopy(s1, s2) ((void)strcpy(s2, s1))
/src/lib/libc/locale/
H A Dwcscoll.c45 wcscoll_l(const wchar_t *s1, const wchar_t *s2, locale_t loc) argument
49 return (wcscmp(s1, s2));
53 wcscoll(const wchar_t *s1, const wchar_t *s2) argument
55 return wcscoll_l(s1, s2, _current_locale());
H A Dwcsxfrm.c45 wcsxfrm_l(wchar_t *s1, const wchar_t *s2, size_t n, locale_t loc) argument
52 len = wcslen(s2);
54 wcscpy(s1, s2);
68 wcsxfrm(wchar_t *s1, const wchar_t *s2, size_t n) argument
70 return wcsxfrm_l(s1, s2, n, _current_locale());
/src/lib/libm/arch/arm/
H A Ds_fmaf.S37 vmla.f32 s2, s0, s1
38 vmov.f32 s0, s2
/src/sys/arch/hpc/stand/libsa/
H A Dstricmp.cpp40 stricmp(const char *s1, const char *s2) argument
43 while (libsa::tolower(*s1) == libsa::tolower(*s2++))
47 return libsa::tolower(*s1) - libsa::tolower(*--s2);
/src/common/lib/libc/string/
H A Dstrcmp.c57 strcmp(const char *s1, const char *s2) argument
60 while (*s1 == *s2++)
63 return (*(const unsigned char *)s1 - *(const unsigned char *)--s2);
H A Dstrncmp.c49 strncmp(const char *s1, const char *s2, size_t n) argument
55 if (*s1 != *s2++)
57 *(const unsigned char *)--s2);
/src/sys/external/isc/libsodium/dist/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;
/src/sys/arch/ia64/stand/common/
H A Dstrspn.c46 * Span the string s2 (skip characters that are in s2).
49 strspn(const char *s1, const char *s2) argument
55 _DIAGASSERT(s2 != NULL);
58 * Skip any characters in s2, excluding the terminating \0.
62 for (spanp = s2; (sc = *spanp++) != 0;)
/src/sys/net/agr/
H A Dieee8023ad_lacp_sm.h32 #define LACP_STATE_EQ(s1, s2, mask) \
33 ((((s1) ^ (s2)) & (mask)) == 0)
/src/lib/libm/arch/aarch64/
H A Ds_fmaf.S39 fmadd s0, s0, s1, s2
/src/distrib/utils/libhack/
H A Dstrcasecmp.c14 strcasecmp(const char *s1, const char *s2) argument
20 c2 = *s2++;
/src/usr.bin/patch/
H A Dcommon.h61 #define strNE(s1,s2) (strcmp(s1, s2))
62 #define strEQ(s1,s2) (!strcmp(s1, s2))
63 #define strnNE(s1,s2,l) (strncmp(s1, s2, l))
64 #define strnEQ(s1,s2,l) (!strncmp(s1, s2, l))
/src/usr.bin/xargs/
H A Dstrnsubst.c40 char *s1, *s2, *this; local in function:strnsubst
57 s2 = calloc(maxsize, 1);
58 if (s2 == NULL)
65 (void)strlcpy(s2, s1, maxsize);
73 if ((strlen(s2) + strlen(s1) + strlen(replstr) -
75 (void)strlcat(s2, s1, maxsize);
78 (void)strncat(s2, s1, (uintptr_t)this - (uintptr_t)s1);
79 (void)strcat(s2, replstr);
82 (void)strcat(s2, s1);
84 *str = s2;
[all...]

Completed in 7 milliseconds

1234567891011>>