strglobmatch(9)
π NAME β strglobmatch(9) π
strglobmatch β glob expression pattern matching. periodt. β¨
okay so bestie, this page is straight out of the Kernel API Manual, and the main character is strglobmatch(9) β she's literally here for glob expression pattern matching. π
πΈ SYNOPSIS πΈ
bool strglobmatch (const char *str , const char *pat );
π¦ ARGUMENTS π¦
strβ the target string to match. the one being checked, bestie. πpatβ the pattern string to match. the vibe she's matching against. π
π DESCRIPTION π
This returns true if str matches pat. no cap. β¨
pat can include wildcards β '*' and '?' β and character classes ([CHARS]), and complementation and ranges are also supported. so she's got range, literally. π
Also, this supports the escape character ('Β΄) to use special characters as normal character. iconique. π§
β οΈ NOTE β οΈ
ifpatsyntax is broken, this always returnsfalse. not sometimes, bestie β always. π
π SEE ALSO π
- Kernel file
./tools/perf/util/string.c strlazymatch(9)strtailcmp(9)
mwah π source/version: ./tools/perf/util Β· date: October 2026 Β· this was the strglobmatch(9) page β bye bestie! π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms