Lines Matching refs:word
16 const char *word; member
26 strip (char **word) in strip() argument
28 char *start = *word; in strip()
42 *word = start; in strip()
52 insert (tree_node *root, char *word) in insert() argument
57 int compare_value = strcmp (word, root->word); in insert()
65 insert (root->left, word); in insert()
69 new_node->word = strdup (word); in insert()
78 insert (root->right, word); in insert()
82 new_node->word = strdup (word); in insert()
97 char word[1024]; in populate_dictionary() local
102 while (fscanf (in_file, "%s", word) == 1) in populate_dictionary()
104 char *new_word = (strdup (word)); in populate_dictionary()
109 new_node->word = new_word; in populate_dictionary()
124 find_word (tree_node *dictionary, char *word) in find_word() argument
126 if (!word || !dictionary) in find_word()
129 int compare_value = strcmp (word, dictionary->word); in find_word()
134 return find_word (dictionary->left, word); in find_word()
136 return find_word (dictionary->right, word); in find_word()
150 printf ("%s\n", dictionary->word); in print_tree()
176 char *word = buffer; in main() local
177 int len = strlen (word); in main()
181 word[i] = tolower (word[i]); in main()
183 if ((len > 0) && (word[len-1] == '\n')) in main()
185 word[len-1] = '\0'; in main()
189 if (find_word (dictionary, word)) in main()