A simple directory search program in C