insert() in trie with erroneous count
I'm missing something in the following code, which is providing a counter that is +1 from correct count when I enter a pre-provided "dictionary" of 143091 entries, but which enters the correct count if I enter a simple, self written "dictionary" of 10 entries. Am I missing something related to EOF or something of that sort?
The calling code is: Code:
word = malloc(LENGTH); Code:
void insert(trie_t *pTrie, char key[]) richard |
disregard additional info previously posted here.
|
There might be empty lines or lines that are longer than LENGTH.
Code:
word = malloc(LENGTH); |
That was, indeed, exactly correct regarding the problem with my code. Thanks again for your help.
|
All times are GMT -5. The time now is 07:13 PM. |