I need to implement something like my own file system. One operation would be the FindFirstFile. I need to check, if the caller passed something like ., sample*.cpp
Have a look at the POSIX functions fnmatch, glob, and wordexp.
fnmatch
glob
wordexp