A simple library of data structures for C. The current release contains implementations of
- Linked List (src/data-structures/list.h)
- Stack (src/data-structures/stack.h)
- Queue (src/data-structures/queue.h)
- Vector (src/data-structures/vector.h)
- Map (src/data-structures/map.h)
This application uses the GNU Build system. To run the sample app and compile the library you will need to install the following software packages:
After downloading the above packages, run the following to install them:
$ cd [autoconf-download-dir]
$ ./configure
$ make
$ sudo make install
$ cd [automake-download-dir]
$ ./configure
$ make
$ sudo make install
- Clone the repo
- Run
autoreconf --installto generate the build system files - Run
./configure && maketo configure and build the project - Run
make testto run the simple test suite - Run
make cleanto clean up
- Run
./configure && maketo generate the static library - copy
libcdatastructures.aand thedata-structuresfolder (headers) to your application folder - include appropriate headers for the data structures you want to use
- add
-L. -lcdatastructuresto you compilation flags
