labwc/include/common/match.h
Consus 3e5b988d38 common: use fnmatch() for pattern matching
Drop-in POSIX-compliant function that has a nice glob(7) manual page for
reference.
2023-10-01 14:17:29 +01:00

15 lines
380 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LABWC_MATCH_H
#define LABWC_MATCH_H
#include <stdbool.h>
/**
* match_glob() - Pattern match using '*' wildcards and '?' jokers.
* @pattern: Pattern to match against.
* @string: String to search.
* Note: Comparison case-insensitive.
*/
bool match_glob(const char *pattern, const char *string);
#endif /* LABWC_MATCH_H */