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

123456789

/osnet-11/usr/src/lib/libc/port/gen/
H A Dstrcat.c37 * Concatenate s2 on the end of s1. S1's space must be large enough.
38 * Return s1.
41 strcat(char *s1, const char *s2) argument
43 char *os1 = s1;
45 while (*s1++)
47 --s1;
48 while (*s1++ = *s2++)
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++)
45 if (*s1++ == '\0')
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++)
47 if (*s1++ == '\0')
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.
38 * return s1
41 strcpy(char *s1, const char *s2) argument
43 char *os1 = s1;
45 while (*s1++ = *s2++)
H A Dstpcpy.c34 * Copy string s2 to s1. s1 must be large enough.
35 * return a pointer to the terminating null character of s1.
38 stpcpy(char *_RESTRICT_KYWD s1, const char *_RESTRICT_KYWD s2) argument
40 (void) strcpy(s1, s2);
41 return (s1 + strlen(s1));
H A Dstrncpy.c37 * Copy s2 to s1, truncating or null-padding to always copy n bytes
38 * return s1
41 strncpy(char *s1, const char *s2, size_t n) argument
43 char *os1 = s1;
46 while ((--n != 0) && ((*s1++ = *s2++) != '\0'))
50 *s1++ = '\0';
H A Dstrncat.c34 * Concatenate s2 on the end of s1. S1's space must be large enough.
36 * Return s1.
39 strncat(char *s1, const char *s2, size_t n) argument
41 char *os1 = s1;
47 while (*s1++)
49 --s1;
50 while (*s1++ = *s2++)
52 s1[-1] = '\0';
H A Dstpncpy.c34 * Copy s2 to s1, truncating or null-padding to always copy n bytes
35 * return a pointer to the terminating null byte in s1, or,
36 * if s1 is not null-terminated, s1 + n.
39 stpncpy(char *_RESTRICT_KYWD s1, const char *_RESTRICT_KYWD s2, size_t n) argument
43 (void) strncpy(s1, s2, n);
45 return ((len < n) ? s1 + len : s1 + n);
/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++))
46 if (*s1++ == 0)
48 return (towlower(*s1) - towlower(*(s2 - 1)));
52 wscasecmp(const wchar_t *s1, const wchar_t *s2) argument
54 return (wcscasecmp(s1, s
[all...]
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++)
50 if (*s1++ == 0)
52 return (*s1 - *(s2 - 1));
56 wscmp(const wchar_t *s1, const wchar_t *s2) argument
58 return (wcscmp(s1, s
[all...]
H A Dwscpy.c30 * wcscpy(): copy string s2 to s1. S1 must be large enough.
31 * Return s1.
33 * wcpcpy(): copy string s2 to s1. S1 must be large enough.
34 * Return a pointer to the terminating null character of s1.
45 wcscpy(wchar_t *s1, const wchar_t *s2) argument
47 wchar_t *os1 = s1;
49 while (*s1++ = *s2++)
55 wscpy(wchar_t *s1, const wchar_t *s2) argument
57 return (wcscpy(s1, s2));
61 wcpcpy(wchar_t *s1, cons argument
[all...]
H A Dwsncat.c33 * Concatenate s2 on the end of s1. S1's space must be large enough.
35 * return s1.
46 wcsncat(wchar_t *s1, const wchar_t *s2, size_t n) argument
48 wchar_t *os1 = s1;
50 while (*s1++) /* find end of s1 */
53 --s1;
54 while (*s1++ = *s2++) /* copy s2 to s1 */
56 *--s1
63 wsncat(wchar_t *s1, const wchar_t *s2, size_t n) argument
[all...]
H A Dwscat.c33 * Concatenate s2 on the end of s1. S1's space must be large enough.
34 * return s1.
45 wcscat(wchar_t *s1, const wchar_t *s2) argument
47 wchar_t *os1 = s1;
49 while (*s1++) /* find end of s1 */
51 --s1;
52 while (*s1++ = *s2++) /* copy s2 to s1 */
58 wscat(wchar_t *s1, cons argument
[all...]
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++))
47 if (*s1++ == 0)
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, s
[all...]
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++)
52 if (*s1++ == 0)
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, s
[all...]
H A Dwsdup.c32 * pointed to by s1
42 wcsdup(const wchar_t *s1) argument
46 s2 = malloc((wcslen(s1) + 1) * sizeof (wchar_t));
47 return (s2 == NULL ? NULL : wcscpy(s2, s1));
51 wsdup(const wchar_t *s1) argument
53 return (wcsdup(s1));
H A Dwsncpy.c37 * Copy s2 to s1, truncating or null-padding to always copy n
38 * wide-character codes. Return s1.
41 wcsncpy(wchar_t *s1, const wchar_t *s2, size_t n) argument
43 wchar_t *os1 = s1;
46 while (--n > 0 && (*s1++ = *s2++) != 0)
50 *s1++ = 0;
55 wsncpy(wchar_t *s1, const wchar_t *s2, size_t n) argument
57 return (wcsncpy(s1, s2, n));
62 * wide-character code in s1, or, if s1 i
65 wcpncpy(wchar_t *s1, const wchar_t *s2, size_t n) argument
[all...]
H A Dwcswcs.c44 const wchar_t *s1, *s2; local
48 s1 = ws1;
52 return ((wchar_t *)s1);
55 while (*s1)
56 if (*s1++ == c) {
57 tptr = s1;
58 while ((c = *++s2) == *s1++ && c)
62 s1 = tptr;
/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
47 s1 = as1;
51 while (*s1)
52 if (*s1++ == c) {
53 offset = s1 - as1 - 1;
55 while ((c = *s2++) == *s1++ && c)
59 s1 = offset + as1 + 1;
/osnet-11/usr/src/cmd/sendmail/libsm/
H A Dt-strrevcmp.c25 char *s1; local
30 s1 = "equal";
32 SM_TEST(sm_strrevcmp(s1, s2) == 0);
34 s1 = "equal";
36 SM_TEST(sm_strrevcmp(s1, s2) > 0);
38 s1 = "qual";
40 SM_TEST(sm_strrevcmp(s1, s2) < 0);
42 s1 = "Equal";
44 SM_TEST(sm_strrevcmp(s1, s2) < 0);
46 s1
[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))) {
55 if (*s1++ == '\0')
58 return ((n < 0)? 0: (*s1 - *s2));
/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
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...]
/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) {
40 / const unsigned char *ps1 = s1;
H A Dstrcpy.s29 / strcpy(s1, s2)
31 / Copies string s2 to s1. s1 must be large enough.
32 / Returns s1
39 / strcpy(char *s1, const char *s2)
41 / char *os1 = s1;
43 / while (*s1++ = *s2++)

Completed in 74 milliseconds

123456789