MCPcopy Index your code
hub / github.com/GJDuck/e9patch / test_memcpy

Function test_memcpy

test/regtest/patch.cpp:679–687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

677 exit(0);
678}
679void test_memcpy(intptr_t *ptr)
680{
681 intptr_t val = -1;
682 memcpy(&val, ptr, sizeof(val));
683 fprintf(stderr, "*ptr = %.16lx\n", *ptr);
684 fprintf(stderr, "val = %.16lx\n", val);
685 fprintf(stderr, "%s\n", (val == *ptr? "PASSED": "FAILED"));
686 exit(0);
687}
688
689struct TMP
690{

Callers

nothing calls this directly

Calls 3

memcpyFunction · 0.85
exitFunction · 0.85
fprintfFunction · 0.50

Tested by

no test coverage detected