Hi, I am working on a program (DOS). I need a function that finds all files with a certain extension (ie *.txt) in a folder. It should return an array of pointers to these files, or something similar.

Does this function exist (I took a quick look in fstream.h, didn't find it) or do I have to make my own? If so, can you give me a hint how I would start?