Mercurial > 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 | 15d7d6b9766f |
children | c020b0d1cfca |
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; unsigned char value; struct Node* down; struct Node* right; };