r/cprogramming • • Aug 30 '26

Math library code review

I am relatively new to C so I try to improve my skills by making a math library. The biggest challenge was making generic containers for matrices and vectors, as I was kind of new to void pointer magic. I think I have polished the most glaring issues in the code but do any of you have suggestions for what I could be doing better in my approach to C? Github for reference:

https://github.com/VatoQ/hoema-prak-clang

5 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/No_Entertainer_6928 Aug 30 '26

Got it, thanks for the quick reply. I think you're right that unit tests should really be the thing I should focus on next. It is also an opportunity to see how user friendly my public API is, too.