2023-10-12 14:25:48 -07:00
|
|
|
#include "stdlib.h"
|
|
|
|
|
|
|
|
#ifndef NODES
|
|
|
|
#define NODES
|
|
|
|
|
|
|
|
struct node {
|
|
|
|
struct node* node;
|
|
|
|
void* data;
|
|
|
|
};
|
|
|
|
|
|
|
|
void append_node(struct node*, struct node*);
|
|
|
|
|
|
|
|
struct node* appendv_node(struct node*, void*);
|
|
|
|
|
2023-10-13 01:39:26 -07:00
|
|
|
int count_nodes(struct node*);
|
2023-10-12 14:25:48 -07:00
|
|
|
|
2023-10-13 03:29:13 -07:00
|
|
|
void iterate_nodes(struct node*, void *func(void*, void*), void*);
|
|
|
|
|
2023-10-12 14:25:48 -07:00
|
|
|
#endif
|