/c-data-structures

A simple library of data structures for C

Primary LanguageC

C Data Structures

Build Status

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)

Build System

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	

Verifying Functionality

  • Clone the repo
  • Run autoreconf --install to generate the build system files
  • Run ./configure && make to configure and build the project
  • Run make test to run the simple test suite
  • Run make clean to clean up

Using the Static Library

  • Run ./configure && make to generate the static library
  • copy libcdatastructures.a and the data-structures folder (headers) to your application folder
  • include appropriate headers for the data structures you want to use
  • add -L. -lcdatastructures to you compilation flags

Sample Applications

Coming Soon!