diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/stdlib.h | 7 | ||||
-rw-r--r-- | src/include/string.h | 11 |
2 files changed, 18 insertions, 0 deletions
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 <gc/mem.h> + +#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 <gc/syscall.h> + +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 |