Popular Data Structure Libraries in C ?

This page summarizes the projects mentioned and recommended in the original post on /r/C_Programming

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • ctl

    My variant of the C Template Library (by rurban)

  • I have used these two header-only STL-like libraries in small projects before: rurban/ctl and tylov/STC. The former has a list of similar projects in the README. The latter feels really fleshed out. It works best if you use the provided string type instead of char *. It also provides a bunch of macros for automatic cleanup that are used everywhere in the documentation, all of which I don't really like and use.

  • STC

    A modern, user friendly, generic, type-safe and fast C99 container library: String, Vector, Sorted and Unordered Map and Set, Deque, Forward List, Smart Pointers, Bitset and Random numbers. (by stclib)

  • I have used these two header-only STL-like libraries in small projects before: rurban/ctl and tylov/STC. The former has a list of similar projects in the README. The latter feels really fleshed out. It works best if you use the provided string type instead of char *. It also provides a bunch of macros for automatic cleanup that are used everywhere in the documentation, all of which I don't really like and use.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • stb

    stb single-file public domain libraries for C/C++

  • stb_ds

  • data-structures-and-algorithms

    Colection of samples of data structures and algorithms in C (by thradams)

  • I am working on https://github.com/thradams/data-structures-and-algorithms

  • mlib

    Library of generic and type safe containers in pure C language (C99 or C11) for a wide collection of container (comparable to the C++ STL).

  • M*LIB

  • ctl

    The C Template Library

  • C Container Template Library (CTL)

  • pottery

    Pottery - A container and algorithm template library in C (by ludocode)

  • Pottery - The page for open hash map reads "Documentation still needs to be written. In the meantime check out the examples."

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • CC

    A small, usability-oriented generic container library.

  • Convenient Containers (CC) - I'm the author of this one.

  • ccan

    The C Code Archive Network

  • There's CCAN, maintained by kernel hacker Rusty Russell: http://ccodearchive.net/

  • c-stl-comparison

    Comparison of different C libraries providing generic containers capabilities

  • You have here a WIP comparison of some C data structure libraries.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts