Hey everyone I am new to this board and to C.
Alright I have a programming assignment doing analytics on text files. This problem is driving me crazy. Ok I have array of a structure to store the string and the number of occurrences that it appears in the text file. PROBLEM: While in the main loop of storing data in the array of structures i need to get a new memory location to store the string. It keeps writing over the memory location. I know why it is doing it, but i do not know how to work around this problem without making a huge array. efficiency is necessary