Commit b4422677 authored by cdf009's avatar cdf009

okay now its actually done, no errors

parent d0c8d898
......@@ -53,7 +53,7 @@ void allocator_print() {
printf("Free List: |\n");
do{
printf("Pointer: %x, Size: %d ", iter->data, iter->size);
printf("Pointer: %p, Size: %d ", iter->data, iter->size);
iter = dlist_iter_next(free_list);
printf("count: %d\n", allocated_list->counter);
}
......@@ -64,7 +64,7 @@ printf("count: %d\n", allocated_list->counter);
printf("\nAllocated List:\n");
do{
//int* demo = (int*) iter;
printf("Pointer: %x, Size: %d\n", iter->data, iter->size);
printf("Pointer: %p, Size: %d\n", iter->data, iter->size);
iter = dlist_iter_next(allocated_list);
}
while(iter);
......
......@@ -32,9 +32,9 @@ int main(){
allocator_print();
printf("\n");
printf("D-Allocating 300");
printf("D-Allocating 400");
printf("\n");
deallocate(opt1->data);
deallocate(options->data);
allocator_print();
printf("\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment