Skip to content

Instantly share code, notes, and snippets.

@icebarf
icebarf / generic_list.c
Last active April 28, 2024 15:28
A meme generic linked list implementation in C.
#include "generic_list.h"
#include <string.h>
#define UNUSED(X) (void)X
// supply your own
typedef struct iNode
{
size_t index;
struct iNode *next;