X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=str.h;h=447e6d40db1d8cca96001d999aba4b032e7f5755;hb=28f081e506a26a01ea1b47f106ef77b05acc7d23;hp=d51b603b8d95374331f3ebf1c6a42c15ae11d0cd;hpb=fe76e81ddfdc066e5b20c2f02cbcaf70fb4f0cd2;p=apps%2Fpfixtools.git diff --git a/str.h b/str.h index d51b603..447e6d4 100644 --- a/str.h +++ b/str.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))