Searched defs:s1 (Results 1 - 25 of 334) 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/libbc/libc/gen/common/
H A Dbcmp.c30 bcmp(char *s1, char *s2, int len) argument
34 if (*s1++ != *s2++)
H A Dstrncat.c30 * Concatenate s2 on the end of s1. S1's space must be large enough.
32 * Return s1.
36 strncat(char *s1, char *s2, int n) argument
40 os1 = s1;
41 while (*s1++)
43 --s1;
44 while (*s1++ = *s2++)
46 *--s1 = '\0';
/illumos-gate/usr/src/lib/libc/port/gen/
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 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 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 Dstrdup.c42 * pointed to by s1
46 strdup(const char *s1) argument
48 char *s2 = malloc(strlen(s1) + 1);
51 (void) strcpy(s2, s1);
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 Dstrndup.c36 strndup(const char *s1, size_t n) argument
40 n = strnlen(s1, n);
42 (void) strlcpy(s2, s1, n + 1);
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);
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 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 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 Dstrtows.c36 strtows(wchar_t *s1, char *s2) argument
40 ret = mbstowcs(s1, s2, TMP_MAX);
45 return (s1);
49 wstostr(char *s1, wchar_t *s2) argument
53 ret = wcstombs(s1, s2, TMP_MAX);
58 return (s1);
/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/common/util/
H A Dbcmp.c47 bcmp(const void *s1, const void *s2, size_t len) argument
49 return (memcmp(s1, s2, len) == 0 ? 0 : 1);
H A Dbcopy.c47 * Copy s1 to s2, always copy n bytes.
51 bcopy(const void *s1, void *s2, size_t len) argument
53 (void) memmove(s2, s1, len);
/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/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/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));
H A Dstrncmp.c39 strncmp(const char *s1, const char *s2, size_t n) argument
45 if (*s1 != *s2++)
46 return (*(const unsigned char *)s1 -
48 if (*s1++ == '\0')
/illumos-gate/usr/src/boot/sys/boot/arm/at91/libat91/
H A Dstrcmp.c32 strcmp(const char *s1, const char *s2) argument
34 for (; *s1 == *s2 && *s1; s1++, s2++);
35 return (unsigned char)*s1 - (unsigned char)*s2;

Completed in 96 milliseconds

1234567891011>>