X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=str.h;h=447e6d40db1d8cca96001d999aba4b032e7f5755;hb=cf693ca05447cfd471bfda79073d006797930d50;hp=e5e9782e27425b5bb14483980ea53ad8e682874f;hpb=9a4efa4f0dc893f243ee69d1b20f024666ca943d;p=apps%2Fpfixtools.git diff --git a/str.h b/str.h index e5e9782..447e6d4 100644 --- a/str.h +++ b/str.h @@ -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 */