Implement documented wildcard escaping in wnmatch_sub

This commit is contained in:
Andrea Mazzoleni 2026-08-26 12:43:17 +02:00
parent 3bd3eff451
commit 35977dadc9
3 changed files with 45 additions and 0 deletions

View file

@ -127,6 +127,7 @@ unsigned strtou(const char* nptr, char** endptr, int base);
* - ** (not near a /) like *
* - ##/ reduces to nothing in addition to the normal matching of ** (using # instead of * to not mess the C comment)
* - [...] matches character classes with support for ranges and negation lile [!...] or [^...], except /
* - \ escapes *, ?, [, ], and \
*
* \return 0 if it matches
*/