summaryrefslogtreecommitdiff
path: root/lib/patmatch.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-06-04 18:34:39 +0000
committerMartin Mares <mj@ucw.cz>2000-06-04 18:34:39 +0000
commit7722938d63d206ebc0e1da732009e1e9f2cd9d72 (patch)
tree41073dbf2866687d85476982ffa1c0288a878da0 /lib/patmatch.c
parent102e3e0e0277e7b123c7c1ae3635c4a8fb55c900 (diff)
Added library progdocs.
Diffstat (limited to 'lib/patmatch.c')
-rw-r--r--lib/patmatch.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/lib/patmatch.c b/lib/patmatch.c
index 15d5007a..923e8f86 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, <mj@atrey.karlin.mff.cuni.cz>
+ * (c) 1998--2000 Martin Mares <mj@ucw.cz>
*/
#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