Home
last modified time | relevance | path

Searched refs:strncmp (Results 1 – 25 of 28) sorted by relevance

12

/picolibc-3.7.0-3.6.0/newlib/testsuite/newlib.string/
Dtstring.c113 || memcmp (target, "J", 0) || strncmp (target, "A", 1) || strncmp (target, "J", 0) || in main()
129 if (target[0] != '\0' || strncmp (target, "", 1) || in main()
159 strncmp (tmp3, target, 2) || in main()
161 strncmp (target, tmp3, 3)) in main()
179 strncmp (target, tmp3, 3) || in main()
180 strncmp (target, tmp3, 4) || in main()
181 strncmp (target, tmp3, 2) || in main()
219 strncmp (target, "ZZZ", 4) || strncmp (target, "ZZY", 3) <= 0 || in main()
220 strncmp ("ZZY", target, 4) >= 0 || in main()
232 strncmp (target, "ZZZ", 2) || strncmp (target, "ZZZ", 4) >= 0 || in main()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libm/test/
Dstring.c177 check(strncmp("", "", 99) == 0); /* Trivial case. */ in test_string()
178 check(strncmp("a", "a", 99) == 0); /* Identity. */ in test_string()
179 check(strncmp("abc", "abc", 99) == 0); /* Multicharacter. */ in test_string()
180 check(strncmp("abc", "abcd", 99) < 0); /* Length unequal. */ in test_string()
181 check(strncmp("abcd", "abc",99) > 0); in test_string()
182 check(strncmp("abcd", "abce", 99) < 0); /* Honestly unequal. */ in test_string()
183 check(strncmp("abce", "abcd",99)>0); in test_string()
184 check(strncmp("abce", "abcd", 3) == 0); /* Count limited. */ in test_string()
185 check(strncmp("abce", "abc", 3) == 0); /* Count == length. */ in test_string()
186 check(strncmp("abcd", "abce", 4) < 0); /* Nudging limit. */ in test_string()
[all …]
Dtest.c321 if (strncmp(is,shouldbe, count)) in test_scok()
340 if (strncmp(is,maybe1, count) && (maybe2 == NULL || strncmp(is,maybe2,count))) in test_scok2()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/
Dstrncmp.c42 int strncmp(const char *s1, const char *s2, size_t n) in strncmp() function
/picolibc-3.7.0-3.6.0/newlib/libc/signal/
Dsig2str.c242 if (strncmp(str, "RTMIN+", SPACES_TO_N) == 0) { in str2sig()
259 if (strncmp(str, "RTMAX-", SPACES_TO_N) == 0) { in str2sig()
/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/
Dgetenv_r.c102 if (!strncmp (*p, name, len)) in _findenv()
Dgdtoa-gethex.c182 if (strncmp ((const char *) s, (const char *) decimalpoint, in gethex()
197 if (strncmp ((const char *) s, (const char *) decimalpoint, in gethex()
244 && strncmp ((const char *) s1 - decp_len + 1, in gethex()
Dstrtod.c359 if (strncmp (s, decimal_point, dec_len) == 0)
Dstrtodg.c513 if (strncmp (s, decimal_point, dec_len) == 0) in _strtodg_l()
/picolibc-3.7.0-3.6.0/newlib/testsuite/newlib.elix/
Dtmmap.c44 CHECK (strncmp (buf, "abcjefgh", 8) == 0); in main()
/picolibc-3.7.0-3.6.0/newlib/libc/string/
Dstrncmp.c72 strncmp (const char *s1, in strncmp() function
Dstrings.tex57 * strncmp:: Character string compare
173 @include string/strncmp.def
DCMakeLists.txt81 strncmp.c
Dmeson.build80 'strncmp.c',
/picolibc-3.7.0-3.6.0/newlib/libc/machine/aarch64/
DCMakeLists.txt63 strncmp-stub.c
64 strncmp.S
Dmeson.build65 'strncmp-stub.c',
66 'strncmp.S',
Dstrncmp.S80 ENTRY (strncmp)
330 END(strncmp)
/picolibc-3.7.0-3.6.0/test/libc-testsuite/
Dstring.c89 TEST(i, !strncmp("abcd", "abce", 3), 1, "strncmp compares past n"); in test_string()
90 TEST(i, !!strncmp("abc", "abd", 3), 1, "strncmp fails to compare n-1st byte"); in test_string()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/hppa/
Dstrncmp.S36 ENTRY(strncmp)
189 EXIT(strncmp)
/picolibc-3.7.0-3.6.0/newlib/libc/include/
Dstring.h75 int strncmp (const char *, const char *, size_t);
/picolibc-3.7.0-3.6.0/newlib/libc/posix/
Dcollate.c156 if(strncmp((const char *) t, (const char *) p2->str, in __collate_lookup()
Dregcomp.c687 if (p->next + 5 < p->end && strncmp(p->next, "[:<:]]", 6) == 0) { in p_bracket()
692 if (p->next + 5 < p->end && strncmp(p->next, "[:>:]]", 6) == 0) { in p_bracket()
846 if (strncmp(cp->name, sp, len) == 0 && cp->name[len] == '\0') in p_b_cclass()
976 if (strncmp(cp->name, sp, len) == 0 && cp->name[len] == '\0') in p_b_coll_elem()
/picolibc-3.7.0-3.6.0/test/
Dlong_double.c224 if (strncmp(buf, "0x", 2) == 0) { in naive_strtold()
Dprintf_scanf.c271 if (y > 0 && strncmp(tbuf, "123", y - 1) != 0) { in main()
/picolibc-3.7.0-3.6.0/newlib/libc/iconv/ces/
Dtable.c488 || strncmp (buf + EXTTABLE_CCSNAME_OFF, name, nmlen) != 0) in load_file()

12