reimplement getdnsdomainname
[apps/madmutt.git] / lib-lib / str.h
index 603e51b..4786d27 100644 (file)
@@ -136,6 +136,12 @@ static inline const char *m_strchrnul(const char *s, int c) {
     return s;
 }
 
+static inline const char *m_strnextsp(const char *s) {
+    while (*s && !isspace((unsigned char)*s))
+        s++;
+    return s;
+}
+
 static inline const char *skipspaces(const char *s) {
     while (*s && isspace((unsigned char)*s))
         s++;