X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-lib%2Fstr.h;h=c9c8c90eaa0714770b6db39831cffee4b49b12ff;hb=1ee89902de184a640c171ae3285bff6882a791bd;hp=603e51be7bd95714bc6f3296e54372a3985185df;hpb=d40d2e47d8033cbf917d09c3865179870897e773;p=apps%2Fmadmutt.git diff --git a/lib-lib/str.h b/lib-lib/str.h index 603e51b..c9c8c90 100644 --- a/lib-lib/str.h +++ b/lib-lib/str.h @@ -20,11 +20,6 @@ #ifndef MUTT_LIB_LIB_STR_H #define MUTT_LIB_LIB_STR_H -#include -#include - -#include "mem.h" - #define HUGE_STRING 5120 #define LONG_STRING 1024 #define STRING 256 @@ -136,6 +131,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++;