Move Regex functions into common code and header
[tpg/opendispense2.git] / src / common / doregex.h
diff --git a/src/common/doregex.h b/src/common/doregex.h
new file mode 100644 (file)
index 0000000..62c6859
--- /dev/null
@@ -0,0 +1,16 @@
+/*
+ * OpenDispense2
+ *
+ * This code is published under the terms of the Acess licence.
+ * See the file COPYING for details.
+ *
+ * doregex.h - Regex Header
+ */
+#ifndef _DOREGEX_H_
+#define _DOREGEX_H_
+
+#include <regex.h>
+extern void    CompileRegex(regex_t *Regex, const char *Pattern, int Flags);
+extern int     RunRegex(regex_t *regex, const char *string, int nMatches, regmatch_t *matches, const char *errorMessage);
+
+#endif

UCC git Repository :: git.ucc.asn.au