summaryrefslogtreecommitdiff
path: root/xutil.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-21 15:06:52 -0700
committerCarl Worth <cworth@cworth.org>2009-10-21 15:07:20 -0700
commitd008389a4ae306e510b11cc18947d305704f9236 (patch)
treeeade87a95f0353f10ce2df093b0261f34cfdddd8 /xutil.h
parent22b2265cacb2930c11b75282046707355446788e (diff)
Add wrappers for regcomp and regexec to xutil.c.
These will be handy for some parsing.
Diffstat (limited to 'xutil.h')
-rw-r--r--xutil.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/xutil.h b/xutil.h
index 7a089a5..b973f7d 100644
--- a/xutil.h
+++ b/xutil.h
@@ -41,4 +41,11 @@ xstrdup (const char *s);
char *
xstrndup (const char *s, size_t n);
+void
+xregcomp (regex_t *preg, const char *regex, int cflags);
+
+int
+xregexec (const regex_t *preg, const char *string,
+ size_t nmatch, regmatch_t pmatch[], int eflags);
+
#endif