From ca4f5906f284e60a7a59ca7450e3e09c4f9356e5 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Mon, 5 Apr 2010 20:32:08 +0200 Subject: Some stuff added to userland. --- src/include/stdlib.h | 7 +++++++ src/include/string.h | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/include/stdlib.h create mode 100644 src/include/string.h (limited to 'src/include') diff --git a/src/include/stdlib.h b/src/include/stdlib.h new file mode 100644 index 0000000..b232649 --- /dev/null +++ b/src/include/stdlib.h @@ -0,0 +1,7 @@ +#ifndef _DEF_STDLIB_H +#define _DEF_STDLIB_H + +//includes malloc/free +#include + +#endif diff --git a/src/include/string.h b/src/include/string.h new file mode 100644 index 0000000..15ec3f3 --- /dev/null +++ b/src/include/string.h @@ -0,0 +1,11 @@ +#ifndef _DEF_STRING_H +#define _DEF_STRING_H + +#include + +void *memcpy(void *dest, const void *src, int count); +uint8_t *memset(uint8_t *dest, uint8_t val, int count); +uint16_t *memsetw(uint16_t *dest, uint16_t val, int count); +int strlen(const char *str); + +#endif -- cgit v1.2.3