Hi evryone!
I don't like to reinvent a bicycle every time I write program. I heard there are extensions for standart C library, what would you recommend?
Hi evryone!
I don't like to reinvent a bicycle every time I write program. I heard there are extensions for standart C library, what would you recommend?
Depends on what sort of bicycle you need!
The standard C library is part of the C standard, so toolchains must implement to the standard. There aren't (as far as I know) any formally defined extension spaces.
Most C toolschains will probably have a few extensions to the standard included, but not necessarily the same ones and not for the same purposes. More usefully, if you're doing something that reinvents the wheel, there's an excellent chance that there'll be several libraries available that provide that functionality. For example, if you wanted to avoid writing a linked list and googled for "C ADT library" there are plenty to chose from, some more well maintained than others.
To decide which one to use, you should consider what platforms you need to support (just because something is open source doesn't mean you'll be able to compile it on any platform of your choosing. E.g. GNU libraries probably have a ton of GCC specific extensions). If you're trying to work on a closed source project, you should consider the license of anything you want to use and how it applies to libraries.
To decide which is "best".... well - I'l personally go for a high profile well maintained library. I.e. find some options on wikipedia and go from there. You need to know what you want to avoid reinventing first though.
Sometimes, despite all good intentions regarding code reuse, it's just better or easier to redo something yourself. Code reuse is a good thing to try to do though!
So far I have no success trying to google the thing, can anyone provide some names or links to lists or something?
Try searching for "C Libraries" or similar. Here's one search result that you can start with
1095 projects tagged "Libraries"
But the correct answer depends on what you're trying to do. The standard C library is very minimal.
Here's a question with some good answers about common data structures in libraries:
Are there any open source C libraries with common data structures? - Stack Overflow
Here's a list of C++ libraries (just to give you an idea):
List of C++ template libraries - Wikipedia, the free encyclopedia
Some other ones that spring to mine:
GNU Multiple Precision Arithmetic Library - Wikipedia, the free encyclopedia -- aka "BigNum". Numbers bigger than you can fit in any of the C basic types
Another list of C libraries
Useful C Libraries
And of course GUI libraries, graphics libraries, games programming libraries.
I googled for "list of useful c libraries" and saw some relevant looking stuff. Enough to give you an idea of the sort of thing you can get.