baum

view baum.h @ 5:c202ccccedb5

added checks for null pointer; print echoes as char or number now (depends on value); all logging goes to stderr now; new nodes blackhole and times (not implemented yet)
author meillo@marmaro.de
date Fri, 08 Feb 2008 20:45:17 +0100
parents 557fa4df2bcd
children c020b0d1cfca
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;
18 unsigned char value;
19 struct Node* down;
20 struct Node* right;
21 };