If you’ve read my previous post, you know that I’m opening up some of the source code from my old startup, Nitrogen Logic. Here’s the first major piece of the Nitrogen Logic source code to go open source. It’s a core utility library used by all of Nitrogen Logic’s C projects, called nlutils.
Because of C’s very limited standard library compared to more modern and full-featured languages, it’s incredibly common for developers to write their own core data structures and helper functions that they use over and over. These include better string manipulation functions, linked lists, associative arrays, etc. – things that we take for granted in languages like Ruby.
nlutils is the set of such tools for Nitrogen Logic’s C projects. Where
possible the code adheres to C99 and POSIX.1-2008. The header files
are thoroughly documented, so browse around the
include/ directory to see what
nlutils provides. After meticulously reviewing the code and tests, I’ve pushed
it to GitHub under the GNU AGPLv3 license for all to enjoy.