labwc/src/common/match.c
John Lindgren 31d42b50e2 src: include primary header first
This is a common practice in C projects, which simply enforces that
each header must compile cleanly without implicit dependencies on
other headers (see also the previous commit).
2025-07-29 21:51:56 +01:00

10 lines
204 B
C

// SPDX-License-Identifier: GPL-2.0-only
#include "common/match.h"
#include <fnmatch.h>
bool
match_glob(const char *pattern, const char *string)
{
return fnmatch(pattern, string, FNM_CASEFOLD) == 0;
}