p=talloc();
According to the forward declaration, talloc returns a pointer to a node, but p is a pointer to a tnode.
treeprintf(p->right);
No such function named treeprintf
struct tnode *talloc(void)
Disagrees with the previous forward declaration, struct node *talloc(void);
Essentially, all your errors are typing mistakes.
Moschops
Practically a Master Poster
620 posts since Sep 2008
Reputation Points: 258
Solved Threads: 117
try this.
printf ("%d\n", EOF);
That's how you find out what the value of EOF is, but it's useless information. The value of EOF doesn't correspond to a key code, and can vary between compilers.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401