move a function into rx.[hc]
[apps/madmutt.git] / lib-lib / rx.h
index 48e295b..0341a19 100644 (file)
@@ -26,8 +26,8 @@
  * this is an internal abstraction layer for regular expressions
  */
 
-#ifndef _LIB_RX_H
-#define _LIB_RX_H
+#ifndef MUTT_LIB_LIB_RX_H
+#define MUTT_LIB_LIB_RX_H
 
 #include <sys/types.h>
 #include <regex.h>
@@ -53,8 +53,10 @@ void rx_delete(rx_t **);
 /* for handling lists */
 int rx_list_match(list2_t*, const char*);      /* match all items list agains string */
 int rx_lookup(list2_t*, const char*);          /* lookup pattern */
+int rx_sanitize_string(char *, ssize_t, const char *);
+
 
 #define REGCOMP(X,Y,Z)  regcomp(X, Y, REG_WORDS|REG_EXTENDED|(Z))
 #define REGEXEC(X,Y)    regexec(X, Y, 0, NULL, 0)
 
-#endif /* !_LIB_RX_H */
+#endif /* !MUTT_LIB_LIB_RX_H */