Searched refs:s1 (Results 1 - 25 of 488) 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
38 char * s1,
42 cs_strcmp(s1, s2)
43 register char *s1, *s2;
47 if(s1 == s2)
49 while(toupper(*s1) == toupper(*s2++))
50 if(*s1++ == '\0')
52 return(toupper(*s1)
37 cs_strcmp( char * s1, char * s2 ) argument
[all...]
H A Dcs_strncmp.c33 * returns: s1>s2; >0 s1==s2; 0 s1<s2; <0
39 char * s1,
44 cs_strncmp(s1, s2, n)
45 register char *s1, *s2;
49 if(s1 == s2)
51 while(--n >= 0 && toupper(*s1) == toupper(*s2++))
52 if(*s1++ == '\0')
54 return((n < 0)? 0: (toupper(*s1)
38 cs_strncmp( char * s1, char * s2, int n ) argument
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dstrncat.c37 * Concatenate s2 on the end of s1. S1's space must be large enough.
39 * Return s1.
42 strncat(char *s1, const char *s2, size_t n) argument
44 char *os1 = s1;
47 while (*s1++)
49 --s1;
50 while (*s1++ = *s2++)
52 s1[-1] = '\0';
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';
/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++)
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 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;
/illumos-gate/usr/src/boot/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));
/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
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;
/illumos-gate/usr/src/psm/promif/ieee1275/common/
H A Dprom_string.c41 prom_strncpy(register char *s1, register char *s2, size_t n) argument
43 register char *os1 = s1;
46 while (--n != 0 && (*s1++ = *s2++) != '\0')
50 *s1++ = '\0';
58 prom_strcpy(register char *s1, register char *s2) argument
62 os1 = s1;
63 while (*s1++ = *s2++)
72 prom_strncmp(register char *s1, register char *s2, register size_t n) argument
75 if (s1 == s2)
77 while (--n != 0 && *s1
87 prom_strcmp(register char *s1, register char *s2) argument
128 prom_strcat(register char *s1, register char *s2) argument
[all...]
/illumos-gate/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...]
/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))) {
55 if (*s1++ == '\0')
58 return ((n < 0)? 0: (*s1 - *s2));
/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/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);

Completed in 73 milliseconds

1234567891011>>