X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=str.h;h=f6980e40c13d09685235386cdd2d77172d304be6;hb=52b485c0f261b6b178a35b4737b3f625126b5c74;hp=d51b603b8d95374331f3ebf1c6a42c15ae11d0cd;hpb=fe76e81ddfdc066e5b20c2f02cbcaf70fb4f0cd2;p=apps%2Fpfixtools.git diff --git a/str.h b/str.h index d51b603..f6980e4 100644 --- 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 */ /* ~~~~~~~~~ */ /* ________________________________________________________________________ */ /* */ @@ -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))