Thread: standart C library extension

  1. #1
    Registered User
    Join Date
    Aug 2012
    Posts
    20

    standart C library extension

    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?

  2. #2
    Registered User
    Join Date
    Mar 2010
    Posts
    583
    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!

  3. #3
    Registered User
    Join Date
    Aug 2012
    Posts
    20
    So far I have no success trying to google the thing, can anyone provide some names or links to lists or something?

  4. #4
    Registered User
    Join Date
    Nov 2012
    Posts
    1,393
    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.

  5. #5
    Registered User
    Join Date
    Mar 2010
    Posts
    583
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. a few good vc++ extension library
    By jackonlyone in forum Windows Programming
    Replies: 0
    Last Post: 04-12-2010, 09:55 PM
  2. How to change standart output
    By shaurya.rastogi in forum C Programming
    Replies: 6
    Last Post: 09-20-2008, 08:49 AM
  3. How can i put standart input's every word to a vector?
    By ataman in forum C++ Programming
    Replies: 2
    Last Post: 06-02-2008, 11:49 AM
  4. Standart Input?
    By ataman in forum C++ Programming
    Replies: 2
    Last Post: 06-02-2008, 11:29 AM
  5. standart dlls
    By keeper in forum C++ Programming
    Replies: 3
    Last Post: 07-05-2006, 07:32 PM