/osnet-11/usr/src/lib/libmail/common/ |
H A D | casncmp.c | 37 * 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/cmd/sendmail/libsm/ |
H A D | t-strrevcmp.c | 26 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...] |
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | stpcpy.c | 34 * 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 D | strcat.c | 37 * 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++)
|
H A D | strcmp.c | 37 * 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 D | strcpy.c | 37 * Copy string s2 to s1. s1 must be large enough. 41 strcpy(char *s1, const char *s2) argument 45 while (*s1++ = *s2++)
|
H A D | strdup.c | 48 char *s2 = malloc(strlen(s1) + 1); local 50 if (s2) 51 (void) strcpy(s2, s1); 52 return (s2);
|
H A D | strncmp.c | 38 * 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 D | strndup.c | 38 char *s2; local 41 if ((s2 = malloc(n + 1)) == NULL) 43 s2[n] = '\0'; 44 return (memcpy(s2, s1, n));
|
H A D | stpncpy.c | 34 * Copy s2 to s1, truncating or null-padding to always copy n bytes 39 stpncpy(char *_RESTRICT_KYWD s1, const char *_RESTRICT_KYWD s2, size_t n) argument 41 size_t len = strnlen(s2, n); 43 (void) strncpy(s1, s2, n);
|
H A D | strncat.c | 34 * Concatenate s2 on the end of s1. S1's space must be large enough. 39 strncat(char *s1, const char *s2, size_t n) argument 43 if (n == 0 || s2 == NULL) { 50 while (*s1++ = *s2++)
|
H A D | strncpy.c | 37 * Copy s2 to s1, truncating or null-padding to always copy n bytes 41 strncpy(char *s1, const char *s2, size_t n) argument 46 while ((--n != 0) && ((*s1++ = *s2++) != '\0'))
|
H A D | ascii_strcasecmp.c | 47 ascii_strcasecmp(const char *s1, const char *s2) argument 51 const unsigned char *us2 = (const unsigned char *)s2;
|
H A D | ascii_strncasecmp.c | 47 ascii_strncasecmp(const char *s1, const char *s2, size_t n) argument 51 const unsigned char *us2 = (const unsigned char *)s2;
|
/osnet-11/usr/src/lib/libc/port/i18n/ |
H A D | wsdup.c | 44 wchar_t *s2; local 46 s2 = malloc((wcslen(s1) + 1) * sizeof (wchar_t)); 47 return (s2 == NULL ? NULL : wcscpy(s2, s1));
|
H A D | strtows.c | 36 strtows(wchar_t *s1, char *s2) argument 40 ret = mbstowcs(s1, s2, TMP_MAX); 49 wstostr(char *s1, wchar_t *s2) argument 53 ret = wcstombs(s1, s2, TMP_MAX);
|
H A D | wscasecmp.c | 28 * 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 D | strcasecmp.c | 40 strcasecmp(const char *s1, const char *s2) argument 43 extern int ascii_strcasecmp(const char *s1, const char *s2); 48 if (s1 == s2) 55 return (ascii_strcasecmp(s1, s2)); 59 us2 = (const uchar_t *)s2;
|
H A D | strncasecmp.c | 40 strncasecmp(const char *s1, const char *s2, size_t n) argument 43 extern int ascii_strncasecmp(const char *s1, const char *s2, size_t n); 48 if (s1 == s2) 55 return (ascii_strncasecmp(s1, s2, n)); 59 us2 = (const uchar_t *)s2;
|
H A D | wscat.c | 33 * Concatenate s2 on the end of s1. S1's space must be large enough. 45 wcscat(wchar_t *s1, const wchar_t *s2) argument 52 while (*s1++ = *s2++) /* copy s2 to s1 */ 58 wscat(wchar_t *s1, const wchar_t *s2) argument 60 return (wcscat(s1, s2));
|
H A D | wscmp.c | 33 * 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 D | wsncasecmp.c | 28 * 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 D | wsncmp.c | 34 * 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 D | wsxfrm.c | 40 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 D | strfind.c | 35 * 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;
|