From 7722938d63d206ebc0e1da732009e1e9f2cd9d72 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 4 Jun 2000 18:34:39 +0000 Subject: Added library progdocs. --- lib/patmatch.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'lib/patmatch.c') diff --git a/lib/patmatch.c b/lib/patmatch.c index 15d5007..923e8f8 100644 --- a/lib/patmatch.c +++ b/lib/patmatch.c @@ -1,7 +1,7 @@ /* * BIRD Library -- Generic Shell-Like Pattern Matching (currently only '?' and '*') * - * (c) 1998 Martin Mares, + * (c) 1998--2000 Martin Mares */ #include "nest/bird.h" @@ -52,3 +52,23 @@ MATCH_FUNC_NAME(byte *p, byte *s) } return !*s; } + +#if 0 +/** + * patmatch - match shell-like patterns + * @p: pattern + * @s: string + * + * patmatch() returns whether given string @s matches the given shell-like + * pattern @p. The patterns consist of characters (which are matched literally), + * question marks which match any single character, asterisks which match any + * (possibly empty) string of characters and backslashes which are used to + * escape any special characters and force them to be treated literally. + * + * The matching process is not optimized with respect to time, so please + * avoid using this function for complex patterns. + */ +int +patmatch(byte *p, byte *s) +{ DUMMY; } +#endif -- cgit v1.2.3