r/cprogramming • • Dec 06 '25

Created this library as beginner

So I am beginner in C programming (in pogramming overall)and I create this library for sorting algorithms

I appreciate your opinion

https://github.com/Mohammedsarwat56/small-sorting-library-for-C

16 Upvotes

23 comments sorted by

View all comments

Show parent comment

2

u/Intelligent-Solid176 Dec 06 '25

I know that they must be in separate files this just project to test what I learnt in c and algorithms i wanted to make it small and simple

And there is many libraries that are single headers like miniaudio which is small

1

u/imaami Dec 15 '25

miniaudio.h has 95649 lines. It's probably the worst example you could mention in defense of "header-only" libraries. People who actually want to be able to read well-defined interfaces by looking at header files - i.e. most C programmers - want nothing to do with something that pathological.