X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-lib%2Fstr.h;h=4786d2766852c05ab2e4478d4b9e8ecc914efb67;hb=3692b834c97c9933088d7082464fec5ae903920f;hp=603e51be7bd95714bc6f3296e54372a3985185df;hpb=d40d2e47d8033cbf917d09c3865179870897e773;p=apps%2Fmadmutt.git diff --git a/lib-lib/str.h b/lib-lib/str.h index 603e51b..4786d27 100644 --- a/lib-lib/str.h +++ b/lib-lib/str.h @@ -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++;