Lines Matching refs:len
87 do_test (const char *str, size_t len, size_t idx) in do_test() argument
89 char tmpbuf[len]; in do_test()
91 memcpy (tmpbuf, buf1 + idx, len); in do_test()
92 memcpy (buf1 + idx, str, len); in do_test()
95 do_one_test (impl, buf1, BUF1PAGES * page_size, str, len, buf1 + idx); in do_test()
97 memcpy (buf1 + idx, tmpbuf, len); in do_test()
110 size_t len = random () % (sizeof (tmpbuf) - 1) + 1; in do_random_tests() local
111 len = MIN (len, BUF1PAGES * page_size - idx - 1); in do_random_tests()
112 memcpy (tmpbuf, buf1 + idx, len); in do_random_tests()
113 for (size_t i = random () % len / 2 + 1; i > 0; --i) in do_random_tests()
115 size_t off = random () % len; in do_random_tests()
122 do_one_test (impl, buf1, BUF1PAGES * page_size, buf1 + idx, len, in do_random_tests()
125 memcpy (buf1 + idx, tmpbuf, len); in do_random_tests()
174 size_t len = strlen (strs[i]); in test_main() local
176 do_test (strs[i], len, j); in test_main()