Searched refs:s1 (Results 1 - 25 of 544) sorted by relevance

1234567891011>>

/freebsd-10.3-release/sys/boot/arm/at91/libat91/
H A Dstrcmp.c32 strcmp(const char *s1, const char *s2) argument
34 for (; *s1 == *s2 && *s1; s1++, s2++);
35 return (unsigned char)*s1 - (unsigned char)*s2;
/freebsd-10.3-release/crypto/heimdal/lib/roken/
H A Dstrtok_r.c43 strtok_r(char *s1, const char *s2, char **lasts) argument
47 if (s1 == NULL)
48 s1 = *lasts;
49 while(*s1 && strchr(s2, *s1))
50 ++s1;
51 if(*s1 == '\0')
53 ret = s1;
54 while(*s1 && !strchr(s2, *s1))
[all...]
H A Dstrcasecmp.c44 strcasecmp(const char *s1, const char *s2) argument
46 while(toupper((unsigned char)*s1) == toupper((unsigned char)*s2)) {
47 if(*s1 == '\0')
49 s1++;
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))
48 if(*s1 == '\0')
50 s1++;
56 return toupper((unsigned char)*s1) - toupper((unsigned char)*s2);
/freebsd-10.3-release/contrib/openpam/lib/libpam/
H A Dopenpam_strlcmp.h36 /* like strcmp(3), but verifies that the entirety of s1 was matched */
38 strlcmp(const char *s1, const char *s2, size_t len) argument
41 for (; len && *s1 && *s2; --len, ++s1, ++s2)
42 if (*s1 != *s2)
43 return ((unsigned char)*s1 - (unsigned char)*s2);
44 return ((unsigned char)*s1);
/freebsd-10.3-release/contrib/subversion/subversion/libsvn_subr/
H A Dadler32.c71 apr_uint32_t s1 = checksum & 0xFFFF; local
80 s1 += input[0]; s2 += s1;
81 s1 += input[1]; s2 += s1;
82 s1 += input[2]; s2 += s1;
83 s1 += input[3]; s2 += s1;
84 s1
[all...]
/freebsd-10.3-release/sys/libkern/
H A Dstrcmp.c42 strcmp(s1, s2)
43 register const char *s1, *s2;
45 while (*s1 == *s2++)
46 if (*s1++ == 0)
48 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++)
43 return (*(const unsigned char *)s1 -
45 if (*s1++ == '\0')
/freebsd-10.3-release/lib/libc/string/
H A Dstrcmp.c45 strcmp(const char *s1, const char *s2) argument
47 while (*s1 == *s2++)
48 if (*s1++ == '\0')
50 return (*(const unsigned char *)s1 - *(const unsigned char *)(s2 - 1));
H A Dwcscmp.c48 wcscmp(const wchar_t *s1, const wchar_t *s2) argument
51 while (*s1 == *s2++)
52 if (*s1++ == '\0')
55 return (*(const unsigned int *)s1 - *(const unsigned int *)--s2);
H A Dstrncmp.c39 strncmp(const char *s1, const char *s2, size_t n) argument
45 if (*s1 != *s2++)
46 return (*(const unsigned char *)s1 -
48 if (*s1++ == '\0')
H A Dwcscasecmp.c34 wcscasecmp(const wchar_t *s1, const wchar_t *s2) argument
38 for (; *s1; s1++, s2++) {
39 c1 = towlower(*s1);
H A Dwcsncmp.c42 wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument
48 if (*s1 != *s2++) {
50 return (*(const unsigned int *)s1 -
53 if (*s1++ == 0)
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;
49 s1++;
/freebsd-10.3-release/contrib/sendmail/libsm/
H A Dt-strrevcmp.c23 char *s1; local
28 s1 = "equal";
30 SM_TEST(sm_strrevcmp(s1, s2) == 0);
32 s1 = "equal";
34 SM_TEST(sm_strrevcmp(s1, s2) > 0);
36 s1 = "qual";
38 SM_TEST(sm_strrevcmp(s1, s2) < 0);
40 s1 = "Equal";
42 SM_TEST(sm_strrevcmp(s1, s2) < 0);
44 s1
[all...]
/freebsd-10.3-release/contrib/ntp/sntp/libpkgver/
H A Dcolcomp.c37 colcomp (s1, s2)
38 register char *s1;
43 while (*s1 && *s2)
45 if ( MyIsDigit(*s1)
48 hilo = (*s1 < *s2) ? -1 : (*s1 > *s2) ? 1 : 0;
49 ++s1;
51 while (MyIsDigit(*s1)
55 hilo = (*s1 < *s2) ? -1 : (*s1 > *s
[all...]
/freebsd-10.3-release/contrib/gcclibs/libiberty/
H A Dmemcmp.c24 register const unsigned char *s1 = (const unsigned char*)str1; local
29 if (*s1++ != *s2++)
30 return s1[-1] < s2[-1] ? -1 : 1;
H A Dmemmove.c21 memmove (PTR s1, const PTR s2, size_t n) argument
23 bcopy (s2, s1, n);
24 return s1;
H A Dbcmp.c23 bcmp (const void *s1, const void *s2, size_t count) argument
25 return memcmp (s1, s2, count);
/freebsd-10.3-release/contrib/gcc/config/
H A Dmemcmp.c7 const unsigned char *s1 = str1; local
12 if (*s1++ != *s2++)
13 return s1[-1] < s2[-1] ? -1 : 1;
/freebsd-10.3-release/contrib/binutils/libiberty/
H A Dmemcmp.c24 register const unsigned char *s1 = (const unsigned char*)str1; local
29 if (*s1++ != *s2++)
30 return s1[-1] < s2[-1] ? -1 : 1;
H A Dmemmove.c21 memmove (PTR s1, const PTR s2, size_t n) argument
23 bcopy (s2, s1, n);
24 return s1;
H A Dbcmp.c23 bcmp (const void *s1, const void *s2, size_t count) argument
25 return memcmp (s1, s2, count);
/freebsd-10.3-release/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-10.3-release/bin/sh/
H A Dmystring.h42 #define equal(s1, s2) (strcmp(s1, s2) == 0)

Completed in 193 milliseconds

1234567891011>>