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

1234567891011>>

/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dcs_strcmp.c32 * Compare strings ignoring case: s1>s2: >0 s1==s2: 0 s1<s2: <0
39 char * s2
42 cs_strcmp(s1, s2)
43 register char *s1, *s2;
47 if(s1 == s2)
49 while(toupper(*s1) == toupper(*s2++))
52 return(toupper(*s1) - toupper(*--s2));
H A Dcs_strncmp.c33 * returns: s1>s2; >0 s1==s2; 0 s1<s2; <0
40 char * s2,
44 cs_strncmp(s1, s2, n)
45 register char *s1, *s2;
49 if(s1 == s2)
51 while(--n >= 0 && toupper(*s1) == toupper(*s2++))
54 return((n < 0)? 0: (toupper(*s1) - toupper(*--s2)));
38 cs_strncmp( char * s1, char * s2, int n ) argument
/illumos-gate/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 Dstrndup.c40 char *s2; local
43 if ((s2 = malloc(n + 1)) != NULL) {
44 bcopy(s1, s2, n);
45 s2[n] = '\0';
48 return (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 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...]
/illumos-gate/usr/src/lib/libc/port/i18n/
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 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));
/illumos-gate/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;
/illumos-gate/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...]
/illumos-gate/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));
/illumos-gate/usr/src/boot/lib/libc/string/
H A Dstrcmp.c45 strcmp(const char *s1, const char *s2) argument
47 while (*s1 == *s2++)
50 return (*(const unsigned char *)s1 - *(const unsigned char *)(s2 - 1));
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dbcmp.c50 bcmp(char *s1, char *s2, int len) argument
52 if (_memcmp(s1, s2, (size_t)len) == 0)
H A Dbcopy.c49 * Copy s1 to s2, always copy n bytes.
53 bcopy(char *s1, char *s2, int len) argument
56 (void) _memmove(s2, s1, (size_t)len);
/illumos-gate/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)
/illumos-gate/usr/src/lib/libdwarf/common/
H A Dmemcpy_swap.h35 void _dwarf_memcpy_swap_bytes(void *s1, const void *s2, unsigned long len);
38 void _dwarf_memcpy_noswap_bytes(void *s1, const void *s2, unsigned long len);
/illumos-gate/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;
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dcollcmp.c40 wchar_t s1[2], s2[2]; local
44 s2[0] = c2;
45 s2[1] = 0;
46 return (wcscoll_l(s1, s2, loc));
/illumos-gate/usr/src/tools/smatch/src/validation/
H A D__func__.c5 char *s2 = __func__ __func__; local

Completed in 81 milliseconds

1234567891011>>