QuentinPerez / 42-toolkit

:seedling: Useful structs written in C
GNU General Public License v3.0
108 stars 26 forks source link

improvements to dynamic array functions #48

Open hkalia opened 7 years ago

hkalia commented 7 years ago

Hi, I am one of the 42 USA students. I came across your git in search for better ways to implement dynamic arrays in c. I implemented my own version at https://github.com/hkalia/42/tree/master/libarr. It has a few improvements over you current implementation (it handles custom structs). Please take a look at test.c for use cases. Feel free to go through the code and adapt it for your own git.