aboutsummaryrefslogtreecommitdiff
path: root/include/lib
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-20 20:52:25 -0700
committerChristian Cunningham <cc@localhost>2022-01-20 20:52:25 -0700
commitc2e52566ed53b53227a6fe577a05170766a1ae4c (patch)
tree9ab8ccff5d37b9ad2a4c46ecbc0ef666c8545e40 /include/lib
parent22297e0f0f5732b852614c7c97e7354d3e7be5c7 (diff)
Added realloc
Added NULL ptr return
Diffstat (limited to 'include/lib')
-rw-r--r--include/lib/mem.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/lib/mem.h b/include/lib/mem.h
index 646a170..529ecea 100644
--- a/include/lib/mem.h
+++ b/include/lib/mem.h
@@ -5,6 +5,7 @@
#define MEM_USE_OFFSET 1
#define MEM_BASE_SIZE 2
#define MEM_META_SIZE 3
+#define NULL 0
struct MemTab {
unsigned char size;
@@ -29,8 +30,10 @@ void memset32(unsigned long* dest, unsigned long value, unsigned int n);
void memcpy32(unsigned long* src, unsigned long* dest, unsigned int n);
unsigned char memcmp32(unsigned long* a, unsigned long* b, unsigned int n);
+void* realloc(void* old, unsigned char size);
void* malloc(unsigned char size);
void* calloc(unsigned char size);
+void* realloca(void* old, unsigned char size, unsigned char amnt);
void* malloca(unsigned char size, unsigned char amnt);
void* calloca(unsigned char size, unsigned char amnt);
void free(void* memloc);