MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / TC_rt_memmove_basic

Function TC_rt_memmove_basic

src/klibc/utest/TC_rt_memmove.c:15–21  ·  view source on GitHub ↗

Basic move with no overlap */

Source from the content-addressed store, hash-verified

13
14/* Basic move with no overlap */
15static void TC_rt_memmove_basic(void)
16{
17 char src[] = "Hello";
18 char dest[10] = {0};
19 rt_memmove(dest, src, rt_strlen(src) + 1);
20 uassert_str_equal(dest, "Hello");
21}
22
23/* Move with overlap (src before dest) */
24static void TC_rt_memmove_overlap_src_before(void)

Callers

nothing calls this directly

Calls 2

rt_memmoveFunction · 0.85
rt_strlenFunction · 0.85

Tested by

no test coverage detected