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

123456789

/osnet-11/usr/src/lib/libc/port/gen/
H A Dstrcmp.c37 * Compare strings: s1>s2: >0 s1==s2: 0 s1<s2: <0
40 strcmp(const char *s1, const char *s2) argument
42 if (s1 == s2)
44 while (*s1 == *s2++)
47 return (*(unsigned char *)s1 - *(unsigned char *)--s2);
H A Dstrncmp.c38 * returns: s1>s2; >0 s1==s2; 0 s1<s2; <0
41 strncmp(const char *s1, const char *s2, size_t n) argument
44 if (s1 == s2)
46 while (--n != 0 && *s1 == *s2++)
49 return (n == 0 ? 0 : *(unsigned char *)s1 - *(unsigned char *)--s2);
H A Dstrcpy.c37 * Copy string s2 to s1. s1 must be large enough.
41 strcpy(char *s1, const char *s2) argument
45 while (*s1++ = *s2++)
H A Dstrdup.c48 char *s2 = malloc(strlen(s1) + 1); local
50 if (s2)
51 (void) strcpy(s2, s1);
52 return (s2);
H A Dstrndup.c38 char *s2; local
41 if ((s2 = malloc(n + 1)) == NULL)
43 s2[n] = '\0';
44 return (memcpy(s2, s1, n));
H A Dstrstr.c45 const char *s1, *s2; local
50 s2 = as2;
52 if (s2 == NULL || *s2 == '\0')
55 c = *s2;
59 while ((c = *++s2) == *s1++ && c != '\0')
64 s2 = as2;
65 c = *s2;
84 const char *s1, *s2; local
90 s2
[all...]
H A Dstpcpy.c34 * Copy string s2 to s1. s1 must be large enough.
38 stpcpy(char *_RESTRICT_KYWD s1, const char *_RESTRICT_KYWD s2) argument
40 (void) strcpy(s1, s2);
H A Dstrcat.c37 * Concatenate s2 on the end of s1. S1's space must be large enough.
41 strcat(char *s1, const char *s2) argument
48 while (*s1++ = *s2++)
/osnet-11/usr/src/lib/libc/port/i18n/
H A Dwscasecmp.c28 * returns: s1>s2: >0 s1==s2: 0 s1<s2: <0
40 wcscasecmp(const wchar_t *s1, const wchar_t *s2) argument
42 if (s1 == s2)
45 while (towlower(*s1) == towlower(*s2++))
48 return (towlower(*s1) - towlower(*(s2 - 1)));
52 wscasecmp(const wchar_t *s1, const wchar_t *s2) argument
54 return (wcscasecmp(s1, s2));
H A Dwscmp.c33 * Compare strings: s1>s2: >0 s1==s2: 0 s1<s2: <0
44 wcscmp(const wchar_t *s1, const wchar_t *s2) argument
46 if (s1 == s2)
49 while (*s1 == *s2++)
52 return (*s1 - *(s2 - 1));
56 wscmp(const wchar_t *s1, const wchar_t *s2) argument
58 return (wcscmp(s1, s2));
H A Dwscpy.c30 * wcscpy(): copy string s2 to s1. S1 must be large enough.
33 * wcpcpy(): copy string s2 to s1. S1 must be large enough.
45 wcscpy(wchar_t *s1, const wchar_t *s2) argument
49 while (*s1++ = *s2++)
55 wscpy(wchar_t *s1, const wchar_t *s2) argument
57 return (wcscpy(s1, s2));
61 wcpcpy(wchar_t *s1, const wchar_t *s2) argument
63 while (*s1++ = *s2++)
H A Dwsncasecmp.c28 * returns: s1>s2: >0 s1==s2: 0 s1<s2: <0
40 wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument
42 if (s1 == s2)
46 while (--n > 0 && towlower(*s1) == towlower(*s2++))
49 return ((n == 0) ? 0 : (towlower(*s1) - towlower(*(s2 - 1))));
53 wsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument
55 return (wcsncasecmp(s1, s2, n));
H A Dwsncmp.c34 * returns: s1>s2: >0 s1==s2: 0 s1<s2: <0
45 wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument
47 if (s1 == s2)
51 while (--n > 0 && *s1 == *s2++)
54 return ((n == 0) ? 0 : (*s1 - *(s2 - 1)));
58 wsncmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument
60 return (wcsncmp(s1, s2, n));
H A Dwcswcs.c44 const wchar_t *s1, *s2; local
49 s2 = ws2;
51 if (s2 == NULL || *s2 == 0)
53 c = *s2;
58 while ((c = *++s2) == *s1++ && c)
63 s2 = ws2;
64 c = *s2;
H A Dwsdup.c44 wchar_t *s2; local
46 s2 = malloc((wcslen(s1) + 1) * sizeof (wchar_t));
47 return (s2 == NULL ? NULL : wcscpy(s2, s1));
H A Dwsxfrm.c40 wsxfrm(wchar_t *s1, const wchar_t *s2, size_t n) argument
42 return (wcsxfrm(s1, s2, n));
46 wscoll(const wchar_t *s1, const wchar_t *s2) argument
48 return (wcscoll(s1, s2));
/osnet-11/usr/src/lib/libgen/common/
H A Dstrfind.c35 * If `s2' is a substring of `s1' return the offset of the first
36 * occurrence of `s2' in `s1',
43 const char *s1, *s2; local
48 s2 = as2;
49 c = *s2;
54 s2++;
55 while ((c = *s2++) == *s1++ && c)
60 s2 = as2;
61 c = *s2;
/osnet-11/usr/src/cmd/sendmail/libsm/
H A Dt-strrevcmp.c26 char *s2; local
31 s2 = "equal";
32 SM_TEST(sm_strrevcmp(s1, s2) == 0);
35 s2 = "qual";
36 SM_TEST(sm_strrevcmp(s1, s2) > 0);
39 s2 = "equal";
40 SM_TEST(sm_strrevcmp(s1, s2) < 0);
43 s2 = "equal";
44 SM_TEST(sm_strrevcmp(s1, s2) < 0);
47 s2
[all...]
H A Dstrrevcmp.c28 ** s2 -- second string.
31 ** strcasecmp(reverse(s1), reverse(s2))
35 sm_strrevcasecmp(s1, s2)
36 const char *s1, *s2;
41 i2 = strlen(s2) - 1;
44 charmap[(unsigned char) s2[i2]])
62 charmap[(unsigned char) s2[i2]]);
71 ** s2 -- second string.
74 ** strcmp(reverse(s1), reverse(s2))
78 sm_strrevcmp(s1, s2)
[all...]
/osnet-11/usr/src/lib/libmail/common/
H A Dcasncmp.c37 * int casncmp(char *s1, char *s2, ssize_t n)
49 casncmp(char *s1, char *s2, ssize_t n) argument
51 if (s1 == s2)
53 while ((--n >= 0) && (tolower(*s1) == tolower(*s2))) {
54 s2++;
58 return ((n < 0)? 0: (*s1 - *s2));
/osnet-11/usr/src/lib/libast/common/comp/
H A Dmemccpy.c33 * Copy s2 to s1, stopping if character c is copied. Copy no more than n bytes.
42 register const char* s2 = (char*)as2;
43 register const char* ep = s2 + n;
45 while (s2 < ep)
46 if ((*s1++ = *s2++) == c)
/osnet-11/usr/src/grub/grub2/grub-core/lib/posix_wrap/
H A Dstring.h31 strcmp (const char *s1, const char *s2) argument
33 return grub_strcmp (s1, s2);
37 strcasecmp (const char *s1, const char *s2) argument
39 return grub_strcasecmp (s1, s2);
/osnet-11/usr/src/lib/libc/i386/gen/
H A Dmemcmp.s29 / memcmp(s1, s2, n)
31 / Compares n bytes: s1>s2: >0 s1==s2: 0 s1<s2: <0
37 / memcmp(const void *s1, const void *s2, size_t n)
39 / if (s1 != s2 && n != 0) {
41 / const unsigned char *ps2 = s2;
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Errno/t/
H A DErrno.t38 $s2 = join(",",sort @Errno::EXPORT_OK);
40 if($s1 ne $s2) {
42 my @s2 = @Errno::EXPORT_OK;
43 my(%s1,%s2);
45 @s2{@s2} = ();
46 delete @s2{@s1};
47 delete @s1{@s2};
51 print "# ",join(" ",map { "'$_'" } keys %s2),"\n";
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/
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
48 return streq9 (s1, s2);
55 streq7 (const char *s1, const char *s2, char s27, char s28) argument
62 return streq8 (s1, s2, s28);
69 streq6 (const char *s1, const char *s2, char s26, char s27, char s28) argument
76 return streq7 (s1, s2, s27, s28);
83 streq5 (const char *s1, const char *s2, char s25, char s26, char s27, char s28) argument
90 return streq6 (s1, s2, s2
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...]

Completed in 87 milliseconds

123456789