HomeSort by relevance Sort by last modified time
    Searched refs:s1 (Results 1 - 25 of 517) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /onnv/onnv-gate/usr/src/lib/libbc/libc/gen/common/
strncat.c 30 * 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)
40 os1 = s1;
41 while (*s1++)
43 --s1;
44 while (*s1++ = *s2++)
46 *--s1 = '\0';
memccpy.c 29 * 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);
bcmp.c 30 bcmp(char *s1, char *s2, int len)
34 if (*s1++ != *s2++)
strstr.c 37 _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++;
stricmp.c 55 strcasecmp(char *s1, char *s2)
59 while (cm[*s1] == cm[*s2++])
60 if (*s1++ == '\0')
62 return(cm[*s1] - cm[*--s2]);
66 strncasecmp(char *s1, char *s2, int n)
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)
82 return (strcasecmp(s1, s2))
    [all...]
memcmp.c 29 * 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++)
  /onnv/onnv-gate/usr/src/cmd/lp/lib/lp/
cs_strcmp.c 32 * 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) - toupper(*--s2))
    [all...]
cs_strncmp.c 33 * 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) - toupper(*--s2)))
    [all...]
  /onnv/onnv-gate/usr/src/lib/libc/port/gen/
strncat.c 37 * 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)
44 char *os1 = s1;
47 while (*s1++)
49 --s1;
50 while (*s1++ = *s2++)
52 s1[-1] = '\0';
strcat.c 37 * Concatenate s2 on the end of s1. S1's space must be large enough.
38 * Return s1.
41 strcat(char *s1, const char *s2)
43 char *os1 = s1;
45 while (*s1++)
47 --s1;
48 while (*s1++ = *s2++)
strcmp.c 37 * Compare strings: s1>s2: >0 s1==s2: 0 s1<s2: <0
40 strcmp(const char *s1, const char *s2)
42 if (s1 == s2)
44 while (*s1 == *s2++)
45 if (*s1++ == '\0')
47 return (*(unsigned char *)s1 - *(unsigned char *)--s2);
strncmp.c 38 * returns: s1>s2; >0 s1==s2; 0 s1<s2; <0
41 strncmp(const char *s1, const char *s2, size_t n)
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);
strcpy.c 37 * Copy string s2 to s1. s1 must be large enough.
38 * return s1
41 strcpy(char *s1, const char *s2)
43 char *os1 = s1;
45 while (*s1++ = *s2++)
strncpy.c 37 * 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)
43 char *os1 = s1;
46 while ((--n != 0) && ((*s1++ = *s2++) != '\0'))
50 *s1++ = '\0';
  /onnv/onnv-gate/usr/src/lib/libc/port/i18n/
wscmp.c 33 * Compare strings: s1>s2: >0 s1==s2: 0 s1<s2: <0
44 wcscmp(const wchar_t *s1, const wchar_t *s2)
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)
58 return (wcscmp(s1, s2))
    [all...]
wsncat.c 33 * 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)
48 wchar_t *os1 = s1;
50 while (*s1++) /* find end of s1 */
53 --s1;
54 while (*s1++ = *s2++) /* copy s2 to s1 */
    [all...]
wscat.c 33 * 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)
47 wchar_t *os1 = s1;
49 while (*s1++) /* find end of s1 */
51 --s1;
52 while (*s1++ = *s2++) /* copy s2 to s1 */
    [all...]
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)
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)
60 return (wcsncmp(s1, s2, n))
    [all...]
wscasecmp.c 31 * returns: s1>s2: >0 s1==s2: 0 s1<s2: <0
43 wscasecmp(const wchar_t *s1, const wchar_t *s2)
45 if (s1 == s2)
48 while (towlower(*s1) == towlower(*s2++))
49 if (*s1++ == 0)
51 return (towlower(*s1) - towlower(*(s2 - 1)));
wscpy.c 33 * Copy string s2 to s1. S1 must be large enough.
34 * Return s1.
45 wcscpy(wchar_t *s1, const wchar_t *s2)
47 wchar_t *os1 = s1;
49 while (*s1++ = *s2++)
55 wscpy(wchar_t *s1, const wchar_t *s2)
57 return (wcscpy(s1, s2));
wsncasecmp.c 31 * returns: s1>s2: >0 s1==s2: 0 s1<s2: <0
43 wsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n)
45 if (s1 == s2)
49 while (--n > 0 && towlower(*s1) == towlower(*s2++))
50 if (*s1++ == 0)
52 return ((n == 0) ? 0 : (towlower(*s1) - towlower(*(s2 - 1))));
  /onnv/onnv-gate/usr/src/cmd/acct/lib/
copyn.c 31 * 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++;
  /onnv/onnv-gate/usr/src/lib/libgen/common/
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
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;
  /onnv/onnv-gate/usr/src/psm/promif/ieee1275/common/
prom_string.c 41 prom_strncpy(register char *s1, register char *s2, size_t n)
43 register char *os1 = s1;
46 while (--n != 0 && (*s1++ = *s2++) != '\0')
50 *s1++ = '\0';
58 prom_strcpy(register char *s1, register char *s2)
62 os1 = s1;
63 while (*s1++ = *s2++)
72 prom_strncmp(register char *s1, register char *s2, register size_t n)
75 if (s1 == s2)
77 while (--n != 0 && *s1 == *s2++
    [all...]
  /onnv/onnv-gate/usr/src/cmd/sendmail/libsm/
t-strrevcmp.c 25 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 = "Equal"
    [all...]

Completed in 780 milliseconds

1 2 3 4 5 6 7 8 91011>>