X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=str.h;h=f6980e40c13d09685235386cdd2d77172d304be6;hb=6a966ebc32006b64216715314ce21a506ef1f7c4;hp=e5e9782e27425b5bb14483980ea53ad8e682874f;hpb=9a4efa4f0dc893f243ee69d1b20f024666ca943d;p=apps%2Fpfixtools.git diff --git a/str.h b/str.h index e5e9782..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 */ /* ~~~~~~~~~ */ /* ________________________________________________________________________ */ /* */ @@ -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 */