Three Dynamic Array Implementations : Template-Macro, Void Pointer , Fat Pointer

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

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

    Simple Dynamic Strings library for C

    Yes, this is the de facto method. Often with custom memory allocators the author will match their function signatures with malloc, free, realloc, and calloc so that allocators can be swapped in and out with the preprocessor. For example, the SDS library expects this in sdsalloc.h.

  • darc

    Collection of C99 dynamic array implementations (by a-p-jo)

  • 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.

  • permafrost-engine

    An OpenGL RTS game engine written in C

    Yea, bit annoying to do that, especially in a large project some vectors need to be static some need to be exposed in the API. In my mind the best solution is to add another macro parameter that lets the user change the function scope on the fly. See the vector used in the permafrost engine (a fellow redditor); when I first saw how he wrote his template macros it was a game changing trick.

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