From fbfc078e9f44c1c1e95c9c484f1d5650bcf631b7 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sat, 27 Jul 2024 16:57:39 -0400 Subject: lots and lots of userspace stuff --- euler/include/cstring | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'euler/include/cstring') diff --git a/euler/include/cstring b/euler/include/cstring index 45bc94e..cba5eb2 100644 --- a/euler/include/cstring +++ b/euler/include/cstring @@ -1,8 +1,9 @@ #pragma once -#include +#include -namespace std { - size_t strlen(const char *str); - void *memcpy(void *dest, const void *src, size_t count); -} +extern "C" void *memset(void *dest, int ch, size_t count); +extern "C" void *memcpy(void *dest, const void *src, size_t count); + +extern "C" int strcmp(const char *lhs, const char *rhs); +extern "C" size_t strlen(const char *str); -- cgit v1.2.3