mirror of
https://github.com/labwc/labwc.git
synced 2025-11-06 13:29:58 -05:00
10 lines
204 B
C
10 lines
204 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
#include <fnmatch.h>
|
|
#include "common/match.h"
|
|
|
|
bool
|
|
match_glob(const char *pattern, const char *string)
|
|
{
|
|
return fnmatch(pattern, string, FNM_CASEFOLD) == 0;
|
|
}
|