view baum.h @ 55:6279e5b14d9e

added error handling for fopen and malloc; code cleanups
author meillo@marmaro.de
date Sun, 16 Mar 2008 10:40:53 +0100
parents c31b5bb6d493
children
line wrap: on
line source

int option_verbose;

struct Node* newNode(char* name, unsigned char value);
struct Node* insertLast(struct Node* node, struct Node* insert);
struct Node* copyTree(struct Node* node);

unsigned char action(struct Node* node); /* in actions.c */

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