Rename project -> pfixtools.
[apps/pfixtools.git] / str.h
diff --git a/str.h b/str.h
index e5e9782..f6980e4 100644 (file)
--- a/str.h
+++ b/str.h
@@ -1,5 +1,5 @@
 /******************************************************************************/
-/*          postlicyd: a postfix policy daemon with a lot of features         */
+/*          pfixtools: a collection of postfix related tools                  */
 /*          ~~~~~~~~~                                                         */
 /*  ________________________________________________________________________  */
 /*                                                                            */
@@ -33,8 +33,8 @@
  * Copyright © 2006 Pierre Habouzit
  */
 
-#ifndef MUTT_LIB_LIB_STR_H
-#define MUTT_LIB_LIB_STR_H
+#ifndef POSTLICYD_STR_H
+#define POSTLICYD_STR_H
 
 #include "mem.h"
 
@@ -338,6 +338,14 @@ static inline const char *m_strnextsp(const char *s) {
     return s;
 }
 
+__attribute__((nonnull(1)))
+static inline char *m_vstrnextsp(char *s) {
+    while (*s && !isspace((unsigned char)*s))
+        s++;
+    return s;
+}
+
+
 __attribute__((nonnull(1)))
 static inline const char *skipspaces(const char *s) {
     while (isspace((unsigned char)*s))
@@ -364,4 +372,4 @@ m_stristr(const char *haystack, const char *needle) {
 }
 
 /*@}*/
-#endif /* MUTT_LIB_LIB_STR_H */
+#endif /* POSTLICYD_STR_H */