baum

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 source
2 void logit(char* text);
4 struct Node* newNode(char* name, unsigned char value);
5 void setValue(struct Node* node, unsigned char value);
6 void delete(struct Node* node);
7 void printNode(struct Node* node);
8 void printTree(struct Node* root);
9 void traverse(struct Node* root);
11 struct Node* nextNode(struct Node* node);
12 struct Node* lastNode(struct Node* node);
13 void insertLast(struct Node* node, struct Node* insert);
16 struct Node {
17 char name[256];
18 unsigned char value;
19 struct Node* down;
20 struct Node* right;
21 };
24 struct Listitem {
25 struct Node* node;
26 struct Listitem* next;
27 };