Back to Browse

Building Type Agnostic C Libraries

2.5K views
May 21, 2026
14:48

Demo on building data structures, helper functions, libraries in C that work with generic / custom data types with a Linked List and Ring Buffer as examples. It's all bytes: https://www.youtube.com/watch?v=-q6slaYwZzw Avoid unecessary abstraction: https://www.youtube.com/watch?v=SavUiYmbyjo Demo code: https://hoff.industries/files/enter-the-void.zip Chapters: 00:00 - Mild annoyance 00:40 - Enter the void 00:58 - The trick 01:58 - User-specified function pointers 03:42 - SLOPFEST 04:10 - Working with void pointers 05:29 - Demo with a custom data type 06:46 - A note on function pointer optimisation 07:40 - Type agnostic ring-buffer example 09:17 - Work with data size, not data type 11:18 - Small note on ring-buffer auto expansion 11:36 - Ring-buffer matching function example 12:35 - Type agnostic ring buffer demo

Download

0 formats

No download links available.

Building Type Agnostic C Libraries | NatokHD