scandir() + windows equivalent

Currently, Im trying to redesign some Unix-based C code to work on the Windows operating system and one problem I ran into when compiling was that the compiler failed to recognise scandir() (from my original Linux code)

Im aware that scandir() is a Unix-based function, so is there an equivalent function for Windows or a unique Windows-based header file that I require ?

My Windows compiling environment is Borland C++ 5.5

many thanks
James

Use FindFirstFile and FindNextFile. They are less powerful than scandir, but I think it might be the best match to what you are trying to achieve,