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

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
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';
H A Dmemccpy.c29 * Copy s2 to s1, stopping if character c is copied. Copy no more than n bytes.
34 memccpy(s1, s2, c, n)
35 register char *s1, *s2;
39 if ((*s1++ = *s2++) == c)
40 return (s1);
H A Dbcmp.c30 bcmp(char *s1, char *s2, int len) argument
34 if (*s1++ != *s2++)
H A Dstrstr.c37 _strstr(s1, s2)
38 register char *s1, *s2;
46 return (s1);
48 while (strlen(s1) >= s2len) {
49 if (strncmp(s1, s2, s2len) == 0)
50 return (s1);
51 s1++;
H A Dstricmp.c55 strcasecmp(char *s1, char *s2) argument
59 while (cm[*s1] == cm[*s2++])
60 if (*s1++ == '\0')
62 return(cm[*s1] - cm[*--s2]);
66 strncasecmp(char *s1, char *s2, int n) argument
70 while (--n >= 0 && cm[*s1] == cm[*s2++])
71 if (*s1++ == '\0')
73 return(n < 0 ? 0 : cm[*s1] - cm[*--s2]);
80 stricmp(char *s1, char *s2) argument
82 return (strcasecmp(s1, s
86 strnicmp(char *s1, char *s2, int n) argument
[all...]
H A Dmemcmp.c29 * Compare n bytes: s1>s2: >0 s1==s2: 0 s1<s2: <0
32 memcmp(s1, s2, n)
33 register char *s1, *s2;
38 if (s1 != s2)
40 if (diff = *s1++ - *s2++)
/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;
/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...]
/illumos-gate/usr/src/cmd/acct/lib/
H A Dcopyn.c31 * Copy n bytes from s2 to s1
32 * return s1
36 copyn(s1, s2, n)
37 register char *s1, *s2;
42 os1 = s1;
44 *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++)
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...]

Completed in 273 milliseconds

1234567891011>>