Ok the goal of this program is to extract lines from a text file, store each word in a binary search tree. Each node in the search tree has pointer to a structure similar to a queue. the queue has a rear and front member , a pointer to a linked list and a size field that tells how many nodes there are in the linked list. Its pretty long and i will post each file in a seperate reply to a post. Right now im getting a segmentation error in my InsertBST function at the point (strcmp(d->word, word) line towards the end of the function. Im assumming when i called the FindBST function that &d was not the right parameter to put there but Im not sure. Also any help with my program would be great. If you see any other mistakes please dont hesistate to let me know. And if you have the patience to actually go through the whole program then thank you. I apprecuate any advice. Thanks.