option.c: fixed warnings
[k8jam.git] / src / matchglob.h
blobef78bfcfcd6b2a79586c99134f44e53293a39ad4
1 /*
2 * Copyright 1994 Christopher Seiwald. All rights reserved.
3 * This file is part of Jam - see jam.c for Copyright information.
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3 of the License ONLY.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 * matchglob.h - match a string against a simple pattern
20 * Understands the following patterns:
22 * * any number of characters
23 * ? any single character
24 * [a-z] any single character in the range a-z
25 * [^a-z] any single character not in the range a-z
26 * \x match x
28 #ifndef JAMH_MATCHGLOB_H
29 #define JAMH_MATCHGLOB_H
32 /* returns 0 on success */
33 extern int matchglob (const char *pat, const char *str);
34 extern int matchglobex (const char *pat, const char *str, int casesens);
37 #endif