aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index 0bd365a..1b21573 100644
--- a/src/common.h
+++ b/src/common.h
@@ -245,4 +245,14 @@ mb_call(unsigned char ch, void *msg) {
245 return mb_read(ch); 245 return mb_read(ch);
246} 246}
247 247
248void *
249memcpy(void *dest, const void *src, u32 n) {
250 u8 *from = (u8*)src;
251 u8 *to = (u8*)dest;
252 for (size_t i = 0; i < n; i++) {
253 to[i] = from[i];
254 }
255 return dest;
256}
257
248#endif // COMMON_RPIBM_H 258#endif // COMMON_RPIBM_H