X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=str.h;h=447e6d40db1d8cca96001d999aba4b032e7f5755;hb=b8b6ac5a6d545a000077eed217c221c7eeda2a84;hp=d51b603b8d95374331f3ebf1c6a42c15ae11d0cd;hpb=628163e5113bd3bcce92dc51395998a2fdd8ad9d;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))