aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/util.h b/util.h
index 7ea5311..b8936ab 100644
--- a/util.h
+++ b/util.h
@@ -3,10 +3,15 @@
#include <inttypes.h>
#include <sds/sds.h>
+#include <regex.h>
uint16_t inet_atop(const char *port);
void herr(int output, const char* funcName);
void herrc(int output, const char* funcName);
-sds gsub(sds str, const char* regex, const char* repl);
+
+sds gsub(sds str, const regex_t* regex, const char* repl);
+sds gsub_getm(sds str, const regex_t *regex, const char* repl, int* *matches, int *matchesCount);
+
+int digits(int num);
#endif