aboutsummaryrefslogtreecommitdiff
path: root/src/std/mem.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-03-07 22:19:57 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit27718f093689dbd3decd7021eaa97327f578c8f3 (patch)
treec41ab4bb5727b22be35c1237279cfdfec0a27561 /src/std/mem.c
parent81b6004928015ced29b0b949e35753977aa17606 (diff)
Add hash map
Diffstat (limited to 'src/std/mem.c')
-rw-r--r--src/std/mem.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/std/mem.c b/src/std/mem.c
index ec7520c..f406176 100644
--- a/src/std/mem.c
+++ b/src/std/mem.c
@@ -5,8 +5,12 @@ void am_memcpy(void *dest, const void *src, usize size) {
memcpy(dest, src, size);
}
+int am_memcmp(const void *lhs, const void *rhs, usize size) {
+ return memcmp(lhs, rhs, size);
+}
+
bool am_memeql(const void *lhs, const void *rhs, usize size) {
- return memcmp(lhs, rhs, size) == 0;
+ return am_memcmp(lhs, rhs, size) == 0;
}
void am_memset(void *dest, int value, usize size) {