Skip to content

basic garbage collector in c, it takes 2 arguments the first is the size of the chunk you want to allocate. it gets returned as a void * in case of failure it returns NULL, the second argument controlls whether you gonna allocate or free everything 0 allocates 1 frees example : gb_malloc(sizeof(char *), 0) - gb_malloc(0, 1).

Notifications You must be signed in to change notification settings

mohamedelhoudaigui/garbage_collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

About

basic garbage collector in c, it takes 2 arguments the first is the size of the chunk you want to allocate. it gets returned as a void * in case of failure it returns NULL, the second argument controlls whether you gonna allocate or free everything 0 allocates 1 frees example : gb_malloc(sizeof(char *), 0) - gb_malloc(0, 1).

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages