0. 들어가며

<aside> 💡

Explicit Allocators & Implicit Allocators

Heap과 Dynamic Memory Allocator

할당기는

Explicit Allocators & Implicit Allocators

1. mallocfree 함수

<aside>

#include <stdlib.h>
void *malloc(size_t size);

// return
// pointer to allocated block if OK, NULL on error
#include <unistd.h>
void *sbrk(intptr_t incr);

// return
// old brk pointer on success, -1 on error
#include <stdlib.h>
void free(void *ptr);

// return
// nothing

</aside>