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

12345678

/haiku-fatelf/src/bin/gawk/missing_d/
H A Dmemcmp.c9 memcmp (s1, s2, l)
10 register char *s1, *s2;
13 for (; l-- > 0; s1++, s2++) {
14 if (*s1 != *s2)
15 return (*s1 - *s2);
/haiku-fatelf/src/system/libroot/posix/string/
H A Dstrstr.c10 strstr(const char *s1, const char *s2) argument
15 return (char *) s1;
17 for (; (s1 = strchr(s1, *s2)) != NULL; s1++) {
18 if (strncmp(s1, s2, s2len) == 0)
19 return (char *)s1;
H A Dstrcspn.c45 strcspn(const char *s1, const char *s2) argument
54 for (p = s1;;) {
59 return (p - 1 - s1);
H A Dstrcasecmp.c40 strcasecmp(const char *s1, const char *s2) argument
42 const u_char *us1 = (const u_char *)s1;
55 strncasecmp(const char *s1, const char *s2, size_t n) argument
58 const u_char *us1 = (const u_char *)s1;
/haiku-fatelf/src/bin/coreutils/lib/
H A Dfilevercmp.h40 int filevercmp (const char *s1, const char *s2);
H A Dstreq.h38 streq9 (const char *s1, const char *s2) argument
40 return strcmp (s1 + 9, s2 + 9) == 0;
44 streq8 (const char *s1, const char *s2, char s28) argument
46 if (s1[8] == s28)
51 return streq9 (s1, s2);
58 streq7 (const char *s1, const char *s2, char s27, char s28) argument
60 if (s1[7] == s27)
65 return streq8 (s1, s2, s28);
72 streq6 (const char *s1, const char *s2, char s26, char s27, char s28) argument
74 if (s1[
86 streq5(const char *s1, const char *s2, char s25, char s26, char s27, char s28) argument
100 streq4(const char *s1, const char *s2, char s24, char s25, char s26, char s27, char s28) argument
114 streq3(const char *s1, const char *s2, char s23, char s24, char s25, char s26, char s27, char s28) argument
128 streq2(const char *s1, const char *s2, char s22, char s23, char s24, char s25, char s26, char s27, char s28) argument
142 streq1(const char *s1, const char *s2, char s21, char s22, char s23, char s24, char s25, char s26, char s27, char s28) argument
156 streq0(const char *s1, const char *s2, char s20, char s21, char s22, char s23, char s24, char s25, char s26, char s27, char s28) argument
[all...]
H A Dc-strcase.h46 extern int c_strcasecmp (const char *s1, const char *s2);
51 extern int c_strncasecmp (const char *s1, const char *s2, size_t n);
H A Dfilevercmp.c84 verrevcmp (const char *s1, size_t s1_len, const char *s2, size_t s2_len) argument
91 while ((s1_pos < s1_len && !c_isdigit (s1[s1_pos]))
94 int s1_c = (s1_pos == s1_len) ? 0 : order (s1[s1_pos]);
101 while (s1[s1_pos] == '0')
105 while (c_isdigit (s1[s1_pos]) && c_isdigit (s2[s2_pos]))
108 first_diff = s1[s1_pos] - s2[s2_pos];
112 if (c_isdigit (s1[s1_pos]))
125 filevercmp (const char *s1, const char *s2) argument
134 int simple_cmp = strcmp (s1, s2);
139 if (!*s1)
[all...]
H A Dmemcmp2.h30 /* Compare the memory regions S1 = [s1..s1+N1-1], S2 = [s2..s2+n2-1],
35 extern int memcmp2 (const char *s1, size_t n1, const char *s2, size_t n2);
H A Dmemcoll.c34 memcoll (char *s1, size_t s1len, char *s2, size_t s2len) argument
44 if (s1len == s2len && memcmp (s1, s2, s1len) == 0)
51 char n1 = s1[s1len];
54 s1[s1len++] = '\0';
57 while (! (errno = 0, (diff = strcoll (s1, s2)) || errno))
62 size_t size1 = strlen (s1) + 1;
64 s1 += size1;
82 s1[s1len - 1] = n1;
88 diff = memcmp (s1, s2, s1len < s2len ? s1len : s2len);
H A Dmemcmp2.c28 memcmp2 (const char *s1, size_t n1, const char *s2, size_t n2) argument
30 int cmp = memcmp (s1, s2, n1 <= n2 ? n1 : n2);
/haiku-fatelf/src/bin/network/wget/lib/
H A Dstreq.h35 streq9 (const char *s1, const char *s2) argument
37 return strcmp (s1 + 9, s2 + 9) == 0;
41 streq8 (const char *s1, const char *s2, char s28) argument
43 if (s1[8] == s28)
48 return streq9 (s1, s2);
55 streq7 (const char *s1, const char *s2, char s27, char s28) argument
57 if (s1[7] == s27)
62 return streq8 (s1, s2, s28);
69 streq6 (const char *s1, const char *s2, char s26, char s27, char s28) argument
71 if (s1[
83 streq5(const char *s1, const char *s2, char s25, char s26, char s27, char s28) argument
97 streq4(const char *s1, const char *s2, char s24, char s25, char s26, char s27, char s28) argument
111 streq3(const char *s1, const char *s2, char s23, char s24, char s25, char s26, char s27, char s28) argument
125 streq2(const char *s1, const char *s2, char s22, char s23, char s24, char s25, char s26, char s27, char s28) argument
139 streq1(const char *s1, const char *s2, char s21, char s22, char s23, char s24, char s25, char s26, char s27, char s28) argument
153 streq0(const char *s1, const char *s2, char s20, char s21, char s22, char s23, char s24, char s25, char s26, char s27, char s28) argument
[all...]
/haiku-fatelf/src/bin/gdb/libiberty/
H A Dmemmove.c25 memmove (s1, s2, n)
26 PTR s1;
30 bcopy (s2, s1, n);
31 return s1;
H A Dmemcmp.c31 register const unsigned char *s1 = (const unsigned char*)str1; local
36 if (*s1++ != *s2++)
37 return s1[-1] < s2[-1] ? -1 : 1;
H A Dstrncmp.c6 @deftypefn Supplemental int strncmp (const char *@var{s1}, const char *@var{s2}, size_t @var{n})
23 strncmp(s1, s2, n)
24 const char *s1, *s2;
31 u1 = (unsigned char) *s1++;
H A Dstrstr.c24 strstr (s1, s2)
25 char *s1, *s2;
27 register char *p = s1;
H A Dstrncasecmp.c15 @deftypefn Supplemental int strncasecmp (const char *@var{s1}, const char *@var{s2})
75 strncasecmp(s1, s2, n)
76 const char *s1, *s2;
82 u1 = (unsigned char) *s1++;
/haiku-fatelf/src/bin/bash/lib/sh/
H A Dstrcasecmp.c37 register const char *s1; local
44 s1 = string1;
48 if ((r = TOLOWER ((unsigned char) *s1) - TOLOWER ((unsigned char) *s2)) != 0)
50 if (*s1++ == '\0')
65 register const char *s1; local
69 s1 = string1;
72 if (s1 == s2)
75 while ((r = TOLOWER ((unsigned char)*s1) - TOLOWER ((unsigned char)*s2)) == 0)
77 if (*s1++ == '\0')
H A Dstrindex.c29 /* Determine if s2 occurs in s1. If so, return a pointer to the
30 match in s1. The compare is case insensitive. This is a
33 strindex (s1, s2)
34 const char *s1;
40 len = strlen (s1);
43 if ((TOLOWER ((unsigned char)s1[i]) == c) && (strncasecmp (s1 + i, s2, l) == 0))
44 return ((char *)s1 + i);
/haiku-fatelf/src/libs/libtelnet/
H A Dgenget.c51 * The prefix function returns 0 if *s1 is not a prefix
52 * of *s2. If *s1 exactly matches *s2, the negative of
53 * the length is returned. If *s1 is a prefix of *s2,
54 * the length of *s1 is returned.
57 isprefix(char *s1, const char *s2) argument
62 if (*s1 == '\0')
64 os1 = s1;
65 c1 = *s1;
70 c1 = *++s1;
73 return(*s1
[all...]
/haiku-fatelf/src/bin/gdb/include/
H A Dfilenames.h41 #define FILENAME_CMP(s1, s2) strcasecmp(s1, s2)
47 #define FILENAME_CMP(s1, s2) strcmp(s1, s2)
/haiku-fatelf/headers/cpp/std/
H A Dstraits.h59 static int compare (const char_type* s1, const char_type* s2, size_t n) argument
63 if (ne (s1[i], s2[i]))
64 return lt (s1[i], s2[i]) ? -1 : 1;
77 static char_type* copy (char_type* s1, const char_type* s2, size_t n) argument
80 assign (s1[n], s2[n]);
81 return s1;
84 static char_type* move (char_type* s1, const char_type* s2, size_t n) argument
91 assign (s1[i], a[i]);
92 return s1;
95 static char_type* set (char_type* s1, cons argument
122 compare(const char_type* s1, const char_type* s2, size_t n) argument
126 copy(char_type* s1, const char_type* s2, size_t n) argument
128 move(char_type* s1, const char_type* s2, size_t n) argument
130 set(char_type* s1, const char_type& c, size_t n) argument
[all...]
/haiku-fatelf/src/bin/network/tcpdump/
H A Dstrcasecmp.c67 strcasecmp(s1, s2)
68 const char *s1, *s2;
71 *us1 = (u_char *)s1,
81 strncasecmp(s1, s2, n)
82 const char *s1, *s2;
86 *us1 = (u_char *)s1,
/haiku-fatelf/headers/os/locale/
H A DCollator.h62 int Compare(const char* s1, const char* s2,
64 bool Equal(const char* s1, const char* s2,
66 bool Greater(const char* s1, const char* s2,
68 bool GreaterOrEqual(const char* s1, const char* s2,
85 BCollator::Equal(const char *s1, const char *s2, int8 strength) const argument
87 return Compare(s1, s2, strength) == 0;
92 BCollator::Greater(const char *s1, const char *s2, int8 strength) const argument
94 return Compare(s1, s2, strength) > 0;
99 BCollator::GreaterOrEqual(const char *s1, const char *s2, int8 strength) const argument
101 return Compare(s1, s
[all...]
/haiku-fatelf/src/libs/pdflib/libs/flate/
H A Dadler32.c15 #define DO1(buf,i) {s1 += buf[i]; s2 += s1;}
24 unsigned long s1 = adler & 0xffff; local
39 s1 += *buf++;
40 s2 += s1;
42 s1 %= BASE;
45 return (s2 << 16) | s1;

Completed in 136 milliseconds

12345678