MYMALLOC
========

This project contains custom implementation of stdlib's memory allocation
functions.
The following functions are implemented:
    * void *malloc(size_t size);
    * void free(void *ptr);
    * void *calloc(size_t nmemb, size_t size);
    * void *realloc(void *ptr, size_t size);

malloc is using the best-fit algorithm, it will find the empty block with a
size as close as possible as the given size to reduce fragmentation.

Please see man page of `malloc (3)` for a detailed usage.

USAGE
=====

First, build the libmalloc.so with:
  - make
or
  - make libmalloc.so

Then, overwrite preloaded library by loading ./libmalloc.so before

LD_PRELOAD=/path/to/custom/libmalloc.so /path/to/myprogram arguments

This command will start `/path/to/myprogram` program with the given `arguments`
using functions contained in `path/to/custom/libmalloc.so` as replacement of
standard functions.

TEST
====

Testing this custom implementation of malloc can be done by typing
`make check`.
But you could also navigatte through
This will launch the test-suite and write the detailed result to
`tests/results.html`.
Feel free to add your own tests in the propery subdirectory of `tests/tests`
folder.
