Lines Matching refs:copy_len
672 size_t copy_len = random() % state.MAX_LEN; in TEST() local
676 memcpy(state.ptr + state.MAX_LEN, state.ptr1, copy_len); in TEST()
678 if (copy_len > ptr1_len) { in TEST()
679 memset(state.ptr + state.MAX_LEN + ptr1_len, '\0', copy_len - ptr1_len); in TEST()
682 expected_end = copy_len; in TEST()
685 ASSERT_EQ(state.ptr2 + expected_end, stpncpy(state.ptr2, state.ptr1, copy_len)); in TEST()
709 size_t copy_len = random() % state.MAX_LEN; in TEST() local
713 memcpy(state.ptr + state.MAX_LEN, state.ptr1, copy_len); in TEST()
715 if (copy_len > ptr1_len) { in TEST()
716 memset(state.ptr + state.MAX_LEN + ptr1_len, '\0', copy_len - ptr1_len); in TEST()
719 expected_end = copy_len; in TEST()
722 ASSERT_EQ(state.ptr2 + expected_end, stpncpy(state.ptr2, state.ptr1, copy_len)); in TEST()