Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find a good guide to writing C Collections?

Tags:

c

I remember having read a very good guide to writing collections. By that I mean, it described using macros to generate types with type parameters, kind of like C++ templates. I'm not sure if it was written by Rusty Russell, but it was someone I recognized. It was posted on hackernews or proggit... I wanted to write a new C library and has searched google for the past 30 min for this guide to no avail. Anybody remember?

like image 421
Mike Axiak Avatar asked Jan 18 '11 01:01

Mike Axiak


2 Answers

This guide fits your description:

  • Collections in C by Armin Ronacher.
like image 180
antonakos Avatar answered Nov 17 '22 08:11

antonakos


One example would be queue(3), see queue.h.

like image 44
Nikolai Fetissov Avatar answered Nov 17 '22 10:11

Nikolai Fetissov