view baum.h @ 8:495a56e706dc

input is now read from stdin
author meillo@marmaro.de
date Sat, 09 Feb 2008 12:42:11 +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;
};