Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
グロビング機能を実装する Linux 用のライブラリはありますか?
glob/fnmatch/etc 関数について話しているわけではありません。ファイルシステムに対する glob 式の評価について話しているわけではないからです。API にはリストと式が含まれ、新しいリストが返されます。
基本的に libpcre のアナログですが、glob 式を実行するためのものです。もうそんなことある?
fnmatch はファイルシステムに対して実行されないため、問題は解決するはずです。fnmatch の署名は次のとおりです。
int fnmatch(const char *pattern, const char *string, int flags);
パターンはグロブ式であり、指定されたstringに対して評価されます。ファイルシステムは関係ありません