summaryrefslogtreecommitdiff
path: root/include/tinyff/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/tinyff/common.h')
-rw-r--r--include/tinyff/common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/tinyff/common.h b/include/tinyff/common.h
index c22f595..653cb6d 100644
--- a/include/tinyff/common.h
+++ b/include/tinyff/common.h
@@ -51,6 +51,16 @@ static inline int ff_memcmp(const void *a, const void *b, size_t n)
return 0;
}
+static inline void ff_memcpy(void *dest, const void *src, size_t n)
+{
+ uint8_t *pd = (uint8_t *)dest;
+ const uint8_t *ps = (const uint8_t *)src;
+ for (size_t i = 0; i < n; i++) {
+ pd[i] = ps[i];
+ }
+}
+
+
// Context bases
// Default