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

Function memtest

examples/utest/testcases/mm/common.h:67–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65#endif
66
67rt_inline int memtest(volatile char *buf, int value, size_t buf_sz)
68{
69 int ret = 0;
70 for (size_t i = 0; i < buf_sz; i++)
71 {
72 if (buf[i] != value)
73 {
74 ret = -1;
75 break;
76 }
77 }
78 return ret;
79}
80
81#endif /* __TEST_MM_COMMON_H__ */

Callers 7

group1_entryFunction · 0.85
group2_entryFunction · 0.85
_verify_file_contentFunction · 0.85
aspace_control_tcFunction · 0.85
_verify_file_contentFunction · 0.85
_verify_file_contentFunction · 0.85

Calls

no outgoing calls

Tested by 4

group1_entryFunction · 0.68
group2_entryFunction · 0.68
aspace_control_tcFunction · 0.68