的fnmatch在C窗口? [英] fnmatch for windows in C?

查看:235
本文介绍了的fnmatch在C窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有适用于Windows版本的fnmatch的?
我试图具有相同的功能(基本上都采用*从文件名中的命令行的)的用C 无需调用的FindFirst()等。

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是AP preciated。

Code is appreciated.

编辑:我需要从文件名在命令行中接受通配符,如* .txt和能够打开每个.txt文件

I need to accept wild cards from the command line for filenames, for example *.txt and be able to open each .txt file.

正如我所说,我不希望如果可能的FindFirst,FindNext中使用。
谢谢

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

推荐答案

PathMatchSpec <一个HREF =htt​​p://msdn.microsoft.com/en-us/library/bb773728.aspx>前会大体相当,尽管它的参数以错误的顺序。

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

这篇关于的fnmatch在C窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆