summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle K <kylek389@gmail.com>2011-01-17 20:12:11 -0600
committerKamil Kaminski <kamilkss@gmail.com>2011-01-17 20:12:11 -0600
commitdc7b772292ddf9f5d1b208ff8c9e2c59c167d0e4 (patch)
tree70e31ab60dd619b9025fe701d3fd488857157fd8
parent7e7ddb63cf68d8733a134bfbd22d309c7e152f26 (diff)
downloadtrees-dc7b772292ddf9f5d1b208ff8c9e2c59c167d0e4.tar.gz
trees-dc7b772292ddf9f5d1b208ff8c9e2c59c167d0e4.tar.bz2
trees-dc7b772292ddf9f5d1b208ff8c9e2c59c167d0e4.zip
add few more tokens
-rw-r--r--trees.c6
-rw-r--r--trees.h1
2 files changed, 4 insertions, 3 deletions
diff --git a/trees.c b/trees.c
index 60de45a..1a70769 100644
--- a/trees.c
+++ b/trees.c
@@ -66,9 +66,9 @@ int main(int argc, char **argv)
struct tnode *root = NULL;
char *tokens[] = { "Anything", "that", "can", "go", "wrong", "will",
- "binary", "tress", "are", "usefull",
- "dreaming", "in", "digital", "living", "in",
- "binary", "talking", "in", "ip"};
+ "binary", "trees", "are", "useful",
+ "dreaming", "in", "digital", "living", "in", "realtime",
+ "thinking", "in", "binary", "talking", "in", "ip"};
int i;
for (i = 0; i < sizeof(tokens) / sizeof(char *); i++)
root = bintree_insert(root, tokens[i]);
diff --git a/trees.h b/trees.h
index 95a1c0a..57a3ae7 100644
--- a/trees.h
+++ b/trees.h
@@ -19,5 +19,6 @@ struct tnode *bintree_insert(struct tnode *, char *);
void treeprint_prefix(struct tnode *);
void treeprint_infix(struct tnode *);
void treeprint_postfix(struct tnode *);
+
#endif