diff options
author | Christian Cunningham <cc@localhost> | 2022-01-20 20:52:25 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-01-20 20:52:25 -0700 |
commit | c2e52566ed53b53227a6fe577a05170766a1ae4c (patch) | |
tree | 9ab8ccff5d37b9ad2a4c46ecbc0ef666c8545e40 /include | |
parent | 22297e0f0f5732b852614c7c97e7354d3e7be5c7 (diff) |
Added realloc
Added NULL ptr return
Diffstat (limited to 'include')
-rw-r--r-- | include/lib/mem.h | 3 |
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); |