Lines Matching refs:copy_len
689 size_t copy_len = random() % state.MAX_LEN; in TEST() local
693 memcpy(state.ptr + state.MAX_LEN, state.ptr1, copy_len); in TEST()
695 if (copy_len > ptr1_len) { in TEST()
696 memset(state.ptr + state.MAX_LEN + ptr1_len, '\0', copy_len - ptr1_len); in TEST()
699 expected_end = copy_len; in TEST()
702 ASSERT_EQ(state.ptr2 + expected_end, stpncpy(state.ptr2, state.ptr1, copy_len)); in TEST()
726 size_t copy_len = random() % state.MAX_LEN; in TEST() local
730 memcpy(state.ptr + state.MAX_LEN, state.ptr1, copy_len); in TEST()
732 if (copy_len > ptr1_len) { in TEST()
733 memset(state.ptr + state.MAX_LEN + ptr1_len, '\0', copy_len - ptr1_len); in TEST()
736 expected_end = copy_len; in TEST()
739 ASSERT_EQ(state.ptr2 + expected_end, stpncpy(state.ptr2, state.ptr1, copy_len)); in TEST()