'Multipurpose' linked list implementation in pure C

前端 未结 9 1805
一生所求
一生所求 2020-12-12 16:33

This is not exactly a technical question, since I know C kind of enough to do the things I need to (I mean, in terms of not \'letting the language get in your way\'), so thi

9条回答
  •  春和景丽
    2020-12-12 17:23

    Using a preprocessor macro is the best option. The Linux kernel linked list is a excellent a eficient implementation of a circularly-linked list in C. Is very portable and easy to use. Here a standalone version of linux kernel 2.6.29 list.h header.

    The FreeBSD/OpenBSD sys/queue is another good option for a generic macro based linked list

提交回复
热议问题