<aside> 💡
Explicit Allocators & Implicit Allocators
malloc
Garbage Collector
</aside>할당기는
free
라고 부르는 블록 = 할당을 위해 사용할 수 있음malloc
Garbage Collector
로도 알려져 있음
Garbage Collection
malloc
과 free
함수<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>