labwc/include/common/match.h
Consus 12f6a8975a Unbreak match_glob
Since bool is not a C89 type, include <stdbool.h> in match.h.
2023-10-01 14:17:29 +01:00

15 lines
399 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LABWC_MATCH_H
#define LABWC_MATCH_H
#include <glib.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 gchar *pattern, const gchar *string);
#endif /* LABWC_MATCH_H */