#include #include #include #include "newmem.h" void* newmalloc(size_t size) { void* start = sbrk(0); void* finish = sbrk(size); printf("%d\n", finish); if (start == finish) return NULL; return finish; }