# GenericDLLLibrary

> A generic doubly linked list library for C with an integrated "glued type" pattern — one list implementation that any user-defined struct can join without casts or per-type code.

URL: https://harshith.in/projects/generic-dll-library/
Author: Harshith Sunku (Staff Engineer) — https://harshith.in/about/
Source: https://github.com/harshithsunku/GenericDLLLibrary
Stack: C, Data Structures

C has no templates, so generic containers usually mean `void *` and casts everywhere.
This library takes the "glued" (intrusive) approach instead: the list node lives inside
the user's struct, and the library recovers the containing struct from the node with
offset arithmetic. One list implementation serves any type, with no allocation per node
and no type erasure — the same pattern the Linux kernel uses for `list_head`.
