Previous commit was a blunder. This commit setups up Malloc proper and includes a working string concat.

This commit is contained in:
2019-01-06 21:47:37 -06:00
parent 67bf4a355d
commit 657b716f77
9 changed files with 487 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#ifndef __MEMORYMANAGER_H
#define __MEMORYMANAGER_H
#include "system.h"
typedef struct MemoryChunk
{
struct MemoryChunk* Prev;
struct MemoryChunk* Next;
size_t Size;
bool Allocated;
};
void MemoryManager(size_t start, size_t size);
void* Malloc(size_t size);
void Free(void* ptr);
#endif