Multiprocessing multipointers!!!!

view story

http://www.unix.com – I have a complex problem..... I have to search files on directory "text files" then search on all of them for a word or sentence....the user inter my problem is,,,, if I want to create a child for each file...and point a file by pointer to search...and I don't know how much files i have in directory ,,, so i don't know how much pointers should i create.... anyone have an idea how to create a number of pointers dynamicly with number of files or any other solution using C (HowTos)