Home
last modified time | relevance | path

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

12

/picolibc-3.5.0-3.4.0/newlib/testsuite/newlib.string/
Dtstring.c102 || memcmp (target, "J", 0) || strncmp (target, "A", 1) || strncmp (target, "J", 0) || in main()
118 if (target[0] != '\0' || strncmp (target, "", 1) || in main()
148 strncmp (tmp3, target, 2) || in main()
150 strncmp (target, tmp3, 3)) in main()
168 strncmp (target, tmp3, 3) || in main()
169 strncmp (target, tmp3, 4) || in main()
170 strncmp (target, tmp3, 2) || in main()
208 strncmp (target, "ZZZ", 4) || strncmp (target, "ZZY", 3) <= 0 || in main()
209 strncmp ("ZZY", target, 4) >= 0 || in main()
221 strncmp (target, "ZZZ", 2) || strncmp (target, "ZZZ", 4) >= 0 || in main()
[all …]
/picolibc-3.5.0-3.4.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.c312 if (strncmp(is,shouldbe, count)) in test_scok()
331 if (strncmp(is,maybe1, count) && (maybe2 == NULL || strncmp(is,maybe2,count))) in test_scok2()
/picolibc-3.5.0-3.4.0/newlib/libc/machine/spu/
Dstrncmp.c42 int strncmp(const char *s1, const char *s2, size_t n) in strncmp() function
/picolibc-3.5.0-3.4.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.5.0-3.4.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.5.0-3.4.0/newlib/testsuite/newlib.elix/
Dtmmap.c44 CHECK (strncmp (buf, "abcjefgh", 8) == 0); in main()
/picolibc-3.5.0-3.4.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.5.0-3.4.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.5.0-3.4.0/newlib/libc/machine/aarch64/
DCMakeLists.txt61 strncmp-stub.c
62 strncmp.S
Dstrncmp.S77 def_fn strncmp
289 .size strncmp, . - strncmp
Dmeson.build63 'strncmp-stub.c',
64 'strncmp.S',
/picolibc-3.5.0-3.4.0/newlib/libc/machine/hppa/
Dstrncmp.S36 ENTRY(strncmp)
189 EXIT(strncmp)
/picolibc-3.5.0-3.4.0/newlib/libc/include/
Dstring.h75 int strncmp (const char *, const char *, size_t);
/picolibc-3.5.0-3.4.0/newlib/libc/posix/
Dcollate.c155 if(strncmp((const char *) t, (const char *) p2->str, in __collate_lookup()
Dregcomp.c688 if (p->next + 5 < p->end && strncmp(p->next, "[:<:]]", 6) == 0) { in p_bracket()
693 if (p->next + 5 < p->end && strncmp(p->next, "[:>:]]", 6) == 0) { in p_bracket()
847 if (strncmp(cp->name, sp, len) == 0 && cp->name[len] == '\0') in p_b_cclass()
977 if (strncmp(cp->name, sp, len) == 0 && cp->name[len] == '\0') in p_b_coll_elem()
/picolibc-3.5.0-3.4.0/test/
Dprintf_scanf.c222 if (y > 0 && strncmp(tbuf, "123", y - 1) != 0) { in main()
/picolibc-3.5.0-3.4.0/newlib/libc/iconv/ces/
Dtable.c488 || strncmp (buf + EXTTABLE_CCSNAME_OFF, name, nmlen) != 0) in load_file()
/picolibc-3.5.0-3.4.0/newlib/libc/time/
Dstrftime.c306 # define t_strncmp strncmp /* char equivalent function name */

12