Searched refs:copy_len (Results 1 - 1 of 1) sorted by relevance

/bionic/tests/
H A Dstring_test.cpp650 size_t copy_len = random() % state.MAX_LEN; local
654 memcpy(state.ptr + state.MAX_LEN, state.ptr1, copy_len);
656 if (copy_len > ptr1_len) {
657 memset(state.ptr + state.MAX_LEN + ptr1_len, '\0', copy_len - ptr1_len);
660 expected_end = copy_len;
663 ASSERT_EQ(state.ptr2 + expected_end, stpncpy(state.ptr2, state.ptr1, copy_len));
689 size_t copy_len = random() % state.MAX_LEN; local
693 memcpy(state.ptr + state.MAX_LEN, state.ptr1, copy_len);
695 if (copy_len > ptr1_len) {
696 memset(state.ptr + state.MAX_LEN + ptr1_len, '\0', copy_len
[all...]

Completed in 129 milliseconds