Skip to content
/ ds Public

A comprehensive collection of intrusive, thread-safe data structures implemented in C89.

Notifications You must be signed in to change notification settings

hydrastro/ds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Structures

A comprehensive collection of intrusive, thread-safe data structures implemented in C89.

Features

Available data structures:

  • AVL Tree
  • Binary Search Tree
  • Binary Tree
  • Double-ended Queue
  • Doubly Linked List
  • Hash Table
  • Heap
  • Singly Linked List
  • Queue
  • Red-Black Tree
  • Stack
  • Trie

Installation

With Nix

nix build

With Make

make
make install

Usage

Include the central header ds.h in your C code:

#include <ds.h> // thread unsafe
#include <ds_safe.h> // thread safe

To compile your project with the library:

gcc -o example.c -lds

For specific data structure usage, check out the tests and the headers.

Contributing

Contributions are welcome!
Before submitting a pull request please:

  • format your code with clang-format
  • test your code with valgrind

About

A comprehensive collection of intrusive, thread-safe data structures implemented in C89.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published