开发者

fnmatch for windows in C?

Is there a version of fnmatch for Windows? I'm trying to have the same functionality (basically using *'s from the command line for the filename) in C without having to call FindFirst() etc.

Code is appreciated.

EDIT: I need to accept wild cards from the command line for filenames, for example *.txt and be able to 开发者_运维百科open each .txt file.

As I said, I don't want to use if possible FindFirst, FindNext. Thanks


PathMatchSpecEx would be roughly equivalent, though it takes arguments in the opposite order.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜