OS1/movies/node.h

19 lines
306 B
C

#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*);
int count_nodes(struct node*);
void iterate_nodes(struct node*, void *func(void*, void*), void*);
#endif