-
Notifications
You must be signed in to change notification settings - Fork 0
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).
mohamedelhoudaigui/garbage_collector
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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 0
No packages published