Lines Matching refs:s2
40 * @s2: The other string
43 int strncasecmp(const char *s1, const char *s2, size_t len)
53 c2 = *s2++;
69 int strcasecmp(const char *s1, const char *s2)
75 c2 = tolower(*s2++);
696 * @s2: another string
703 bool sysfs_streq(const char *s1, const char *s2)
705 while (*s1 && *s1 == *s2) {
707 s2++;
710 if (*s1 == *s2)
712 if (!*s1 && *s2 == '\n' && !s2[1])
714 if (*s1 == '\n' && !s1[1] && !*s2)
998 * @s2: The string to search for
1000 char *strstr(const char *s1, const char *s2)
1004 l2 = strlen(s2);
1010 if (!memcmp(s1, s2, l2))
1023 * @s2: The string to search for
1026 char *strnstr(const char *s1, const char *s2, size_t len)
1030 l2 = strlen(s2);
1035 if (!memcmp(s1, s2, l2))