Skip to content

Betterft v1.4

Choose a tag to compare

@RPDJF RPDJF released this 01 Jan 12:37
· 24 commits to master since this release


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.

Version

Current vibe: 1.4.1 🚦

What's New? 🚀

  • Fixed the gfree function, allowing freeing when there's only one garbage item.
  • The Garbage Collector now utilizes a new type of linked list, enabling optimizations and the ability to have linked lists within the Garbage Collector. Remember to use gfree instead of free to clear linked lists.

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! 🚀✨

Full Changelog: v1.2...v1.4