Skip to content
/ betterft Public

Betterft is a C library with garbage collector and based on libft that you can use inside 42 Core

Notifications You must be signed in to change notification settings

RPDJF/betterft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Betterft 🚀

What's Up?

Betterft is like the cool cousin of the C library "libft." We spiced things up a bit, but don't worry, it's still the same old library you know. The main twist? We swapped out malloc for the slick galloc function, and it all gets stored in a list we call the Garbage Collector. 🗑️

Garbage Collector, Keeping it Tidy 💽

So, the Garbage Collector is like the guardian of our memory party. Need to clean up the whole place? Hit up cleargarbage. Want to be more selective? Use gfree to free a specific address and kick it off the list.

Mixing it Up 🤘

If you're doing memory business without betterft (no hard feelings, seriously), there's addgarbage to manually add stuff to the Garbage Collector's list. But honestly, all betterft allocations are already on the VIP list.

Warning! 🚨

Dive into the source file for the full lowdown on how to vibe with Betterft. And don't forget to enjoy the code! 😎✌️

Now go, code a better life with Betterft! 🚀✨

About

Betterft is a C library with garbage collector and based on libft that you can use inside 42 Core

Resources

Stars

Watchers

Forks

Packages

No packages published