summaryrefslogtreecommitdiff
path: root/src/shared/mem.h
diff options
context:
space:
mode:
authordzwdz2021-11-14 17:46:20 +0100
committerdzwdz2021-11-14 17:46:20 +0100
commit7acf810e81491b08410df1b7bb886bd11b44cd98 (patch)
treed05378fea8e7e11a6db90369c165988752a18557 /src/shared/mem.h
parent714b3dce9016f699f8842d792075555077fd4d31 (diff)
shared: use a single implementation of mem* functions everywhere
Diffstat (limited to 'src/shared/mem.h')
-rw-r--r--src/shared/mem.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shared/mem.h b/src/shared/mem.h
new file mode 100644
index 0000000..682c184
--- /dev/null
+++ b/src/shared/mem.h
@@ -0,0 +1,7 @@
+#pragma once
+#include <stddef.h>
+
+int memcmp(const void *s1, const void *s2, size_t n);
+
+void *memcpy(void *dest, const void *src, size_t n);
+void *memset(void *s, int c, size_t n);