view src/lib/wildcard-match.h @ 10941:f7d14405de09 HEAD

Added wildcard_match*() for matching strings with '*' and '?' wildcards.
author Timo Sirainen <tss@iki.fi>
date Thu, 18 Mar 2010 04:11:55 +0200
parents
children
line wrap: on
line source

#ifndef WILDCARD_MATCH_H
#define WILDCARD_MATCH_H

/* Returns TRUE if mask matches data. mask can contain '*' and '?' wildcards. */
bool wildcard_match(const char *data, const char *mask);
/* Like wildcard_match(), but match ASCII characters case-insensitively. */
bool wildcard_match_icase(const char *data, const char *mask);

#endif