Forking in C to search for a word in a given text file