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

1 2 3 4 5 6 7 8 91011>>

  /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
39 char * s2
42 cs_strcmp(s1, s2)
43 register char *s1, *s2;
47 if(s1 == s2)
49 while(toupper(*s1) == toupper(*s2++))
52 return(toupper(*s1) - toupper(*--s2));
cs_strncmp.c 33 * returns: s1>s2; >0 s1==s2; 0 s1<s2; <0
40 char * s2,
44 cs_strncmp(s1, s2, n)
45 register char *s1, *s2;
49 if(s1 == s2)
51 while(--n >= 0 && toupper(*s1) == toupper(*s2++))
54 return((n < 0)? 0: (toupper(*s1) - toupper(*--s2)));
  /onnv/onnv-gate/usr/src/lib/libbc/libc/gen/common/
bcmp.c 30 bcmp(char *s1, char *s2, int len)
34 if (*s1++ != *s2++)
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)
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++)
stricmp.c 55 strcasecmp(char *s1, char *s2)
59 while (cm[*s1] == cm[*s2++])
62 return(cm[*s1] - cm[*--s2]);
66 strncasecmp(char *s1, char *s2, int n)
70 while (--n >= 0 && cm[*s1] == cm[*s2++])
73 return(n < 0 ? 0 : cm[*s1] - cm[*--s2]);
80 stricmp(char *s1, char *s2)
82 return (strcasecmp(s1, s2));
86 strnicmp(char *s1, char *s2, int n)
88 return (strncasecmp(s1, s2, n))
    [all...]
getenv.c 52 * s2 is name=value
53 * if names match, return value of s2, else NULL
58 nvmatch(s1, s2)
59 register char *s1, *s2;
61 while(*s1 == *s2++)
63 return(s2);
64 if(*s1 == '\0' && *(s2-1) == '=')
65 return(s2);
strncat.c 30 * Concatenate s2 on the end of s1. S1's space must be large enough.
36 strncat(char *s1, char *s2, int n)
44 while (*s1++ = *s2++)
strstr.c 37 _strstr(s1, s2)
38 register char *s1, *s2;
40 int s2len = strlen(s2); /* length of the second string */
49 if (strncmp(s1, s2, s2len) == 0)
  /onnv/onnv-gate/usr/src/lib/libc/port/gen/
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++)
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++)
49 return (n == 0 ? 0 : *(unsigned char *)s1 - *(unsigned char *)--s2);
strcpy.c 37 * Copy string s2 to s1. s1 must be large enough.
41 strcpy(char *s1, const char *s2)
45 while (*s1++ = *s2++)
strstr.c 48 const char *s1, *s2; local
53 s2 = as2;
55 if (s2 == NULL || *s2 == '\0')
57 c = *s2;
62 while ((c = *++s2) == *s1++ && c)
67 s2 = as2;
68 c = *s2;
strdup.c 48 char *s2 = malloc(strlen(s1) + 1); local
50 if (s2)
51 (void) strcpy(s2, s1);
52 return (s2);
  /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++)
52 return (*s1 - *(s2 - 1));
56 wscmp(const wchar_t *s1, const wchar_t *s2)
58 return (wcscmp(s1, s2));
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++)
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));
wcswcs.c 44 const wchar_t *s1, *s2; local
49 s2 = ws2;
51 if (s2 == NULL || *s2 == 0)
53 c = *s2;
58 while ((c = *++s2) == *s1++ && c)
63 s2 = ws2;
64 c = *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
48 s2 = as2;
49 c = *s2;
54 s2++;
55 while ((c = *s2++) == *s1++ && c)
60 s2 = as2;
61 c = *s2;
  /onnv/onnv-gate/usr/src/cmd/sendmail/libsm/
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 = "equal"
    [all...]
  /onnv/onnv-gate/usr/src/lib/libmail/common/
casncmp.c 37 * int casncmp(char *s1, char *s2, ssize_t n)
49 casncmp(char *s1, char *s2, ssize_t n)
51 if (s1 == s2)
53 while ((--n >= 0) && (tolower(*s1) == tolower(*s2))) {
54 s2++;
58 return ((n < 0)? 0: (*s1 - *s2));
  /onnv/onnv-gate/usr/src/cmd/acct/lib/
copyn.c 31 * Copy n bytes from s2 to s1
36 copyn(s1, s2, n)
37 register char *s1, *s2;
44 *s1++ = *s2++;
  /onnv/onnv-gate/usr/src/ucblib/libucb/port/gen/
bcmp.c 50 bcmp(char *s1, char *s2, int len)
52 if (_memcmp(s1, s2, (size_t)len) == 0)
bcopy.c 49 * Copy s1 to s2, always copy n bytes.
53 bcopy(char *s1, char *s2, int len)
56 (void) _memmove(s2, s1, (size_t)len);
  /onnv/onnv-gate/usr/src/lib/libast/common/comp/
memccpy.c 33 * Copy s2 to s1, stopping if character c is copied. Copy no more than n bytes.
42 register const char* s2 = (char*)as2;
43 register const char* ep = s2 + n;
45 while (s2 < ep)
46 if ((*s1++ = *s2++) == c)
  /onnv/onnv-gate/usr/src/lib/libc/i386/gen/
memcmp.s 29 / memcmp(s1, s2, n)
31 / Compares n bytes: s1>s2: >0 s1==s2: 0 s1<s2: <0
37 / memcmp(const void *s1, const void *s2, size_t n)
39 / if (s1 != s2 && n != 0) {
41 / const unsigned char *ps2 = s2;

Completed in 3489 milliseconds

1 2 3 4 5 6 7 8 91011>>