Hi, i am new to this forum, and new to c programming. I have an assignment to write a program in c which asks the user to type in a file name (already existing) for which he wants to do processing. The size of the file is not known so memory for reading it has to be allocated dynamically. The program then looks for the 7th occurence of all phrases if they exits, of all lengths, and puts the dollar sign $$$ before and after the phrase. Then it looks for the 10th occurence of all words, and replaces it with the word "warning."
The other part of the assignment, was to design a tic tac game with spaces and words for placing and replacing. I understood this one so i did it already. I just dont understand how to proceed with the one above. Please help me out.