Skip to content
Jian-Hong Pan edited this page Mar 17, 2014 · 35 revisions

Simple Data Structure (SDS) is a simple data structure library which provides QUEUE, STACK and RING (Circular Buffer) APIs.

The detail documents could be seen in the APIs (corresponding to the version 1.0.3).

Introduction @ COSCUP 2013 Lightning Talk

Video: http://www.youtube.com/watch?v=rv9GH4pDcvQ
Slide: http://www.slideshare.net/chienhungpan/simple-data-structure-coscup-2013?from_search=1

Have the code

You can have it from the GitHub: https://github.com/starnight/simple-data-structure

Or, clone the source code from GitHub.

$ git clone git://github.com/starnight/simple-data-structure.git

The last stable version is 1.0.3.

Demo usage

Before compile this library, you must have the compiler, for example GCC, of course. There is a demo code which is 'demo.c'. You can just use the 'make' utility which will compile the codes according to the 'Makefile'. Then execute the program 'demo.bin' for demo. I also use the program to test the APIs I wrote working right or wrong.

$ make
$ ./demo.bin

The program will do the demo three rounds. The first round tests the QUEUE. Second round tests the STACK. Third round tests the RING.

License

Simple Data Structure's code uses the BSD license, see our 'LICENSE.md' file.

Clone this wiki locally