MCPcopy Create free account
hub / github.com/GJDuck/e9patch / memcpy

Function memcpy

examples/stdlib.c:2584–2591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2582}
2583
2584static void *memcpy(void *dst, const void *src, size_t n)
2585{
2586 uint8_t *dst8 = (uint8_t *)dst;
2587 const uint8_t *src8 = (const uint8_t *)src;
2588 for (size_t i = 0; i < n; i++)
2589 dst8[i] = src8[i];
2590 return dst;
2591}
2592
2593static void *memmove(void *dst, const void *src, size_t n)
2594{

Callers 15

elf_compressFunction · 0.85
gelf_getehdr.cFile · 0.85
elf_compress_gnuFunction · 0.85
load_shdr_wrlockFunction · 0.85
get_shnumFunction · 0.85
file_read_elfFunction · 0.85
read_long_namesFunction · 0.85
try_dwp_fileFunction · 0.85
convert_dataFunction · 0.85
__libdw_set_debugdirFunction · 0.85
elf_cvt_noteFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_memcpyFunction · 0.68
test_memcpy_2Function · 0.68
test_memcpy_3Function · 0.68