What to replace glob_t and glob () with a port for Windows?

I have code like this snippet:

#include <glob.h>

glob_t globBuf;
const int result = glob(remoteFileName.c_str(), 0, 0, &globBuf);

if (result == GLOB_NOSPACE) {
  ...
} else if (result == GLOB_NOMATCH) {
  ...
} else {
  ...
}

But I do not find glob.hin the windows.

What will I use in Microsoft Windows to provide equivalent functions for porting this code from Linux?

+5
source share
1 answer

globis POSIX specific and does not exist on Windows. On Windows, look at FindFirstFileits companion features.

+2
source

All Articles