JoeCool17/stdbot — pull request #1 by mfabel (2013-02-22 17:36:14+00:00)
Title: Implemented Basic Dynamic Memmory Manager

Summary
=======

* Reorganized working directory

* Updated `README`

* Changed `stdbot_dmm.h` prototypes to match standard C

* Implemented `malloc()` and `free()`

Implementation Details
---------------------------------

**`void *malloc(int size)`**

I implemented `malloc()` by having it return a pointer to the current end of the dynamic memory array and then move the end pointer size bytes forwards. No record of the allocation is kept.

Returns a pointer to the start of the memory block, or NULL if either a) there is no more space, or b) size <= 0.

**`void free(void *ptr)`***

The implementation of `free()` does nothing, as there are no records of what is allocated or how large an allocation is.