Some container ADT:s - written in ANSI C
This project is maintained by dale48
Good programming tools are crucial for efficient software development. One specific tool in the programmers toolbox, is an API for containers, so you can fiddle, search and sort data in memory - according to your liking. If you are working on a big project, this is no big deal, since there are lots of resources for this out there - on the Net (STL, GLib,...). However, if it's a small project, if you are a student - or just interested in the inner workings of the Data Structures, that comprise this kind of tool - it might be a little trickier to find a quick solution. If memory resources are scarce in the environment where your software is supposed to run, you might need another solution. This is where 'LevAWC' might come in handy. 'LevAWC' contains some fundamental containers for programming, written in ANSI C. Moreover, they are generic, compact, fairly well-documented - and fast.
The original source code for 'LevAWC' is written by Kyle Loudon, in his book Mastering Algorithms with C - published at O'Reilly Company. I have rewritten and extended some minor parts of the original source code - and consider myself just a maintainer of Kyle's work.
Finally, I want to thank Kyle Loudon and Andy Oram at O'Reilly for giving me permission to publish this code at GitHub.
The project documentation is available by clicking on the 'Documentation' button in menu on the left - or here. You might want to look at the ChangeLog, for example.
You can even reproduce the Documentation, locally, on your box. Clone - or download zip/tar.gz file of this project - install Doxygen - and finally run command:
$ doxygen - from the command prompt - when standing in the top-most directory of your clone. Then point your browser to the file index.html in the the new subdirectory html - recently created by this command.
This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to: http://unlicense.org/
In case you want a copy of the complete repository - just use one of the 2 upper buttons on the left - depending of the compression format you prefer. The simplest way to build all sources to binary code might be to use the built-in makefiles, present in the 'demos' subdirectory. Usage:
$ make -f linux.mak // On Linux, Unix, Windows/MSYS... $ mingw32-make -f mingw32.mak // On Windows/MinGW... $ make -f msys32.mak // On Windows/MSYS/MinGW... $ nmake -f vcwin32.mak // On Windows/MSVC...
After this, the demo programs and the library are built-and-ready in this 'demos' subdirectory. To clean the subdirectory - just run the same command again - with option 'clean' added - at the end of the command.
Another possibility - if you are sitting on a UNIX/Linux box (or Cygwin, MSYS/MinGW on Win32) - is to download a GNU Tarball, so you can do a quick:
$ ./configure && make $ sudo make install // If - you want to install...- to get it all set. This might even work on a Mac, although I've not verified this, so far. I've tested the GNU Tarball on Linux and MSYS/MingGW - with good results, though.
Still another possibility is, of course, your own building strategy set up by yourself - on your own system. This might be the best solution in some cases.
Just click the 'View on GitHub' button - on the left.