view baum.h @ 9:c020b0d1cfca

read input is now finished in first version; removed init; added push and pull; name is now array instead of pointer
author meillo@marmaro.de
date Sat, 09 Feb 2008 16:41:41 +0100
parents 15d7d6b9766f
children 0e15841ae111
line wrap: on
line source


void logit(char* text);

struct Node* newNode(char* name, unsigned char value);
void setValue(struct Node* node, unsigned char value);
void delete(struct Node* node);
void printNode(struct Node* node);
void printTree(struct Node* root);
void traverse(struct Node* root);

struct Node* nextNode(struct Node* node);
struct Node* lastNode(struct Node* node);
void insertLast(struct Node* node, struct Node* insert);


struct Node {
	char name[256];
	unsigned char value;
	struct Node* down;
	struct Node* right;
};


struct Listitem {
	struct Node* node;
	struct Listitem* next;
};