projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add comments to the greylist algorithm.
[apps/pfixtools.git]
/
str.h
diff --git
a/str.h
b/str.h
index
e5e9782
..
bc1cf9e
100644
(file)
--- a/
str.h
+++ b/
str.h
@@
-1,5
+1,5
@@
/******************************************************************************/
/******************************************************************************/
-/* p
ostlicyd: a postfix policy daemon with a lot of features
*/
+/* p
fixtools: a collection of postfix related tools
*/
/* ~~~~~~~~~ */
/* ________________________________________________________________________ */
/* */
/* ~~~~~~~~~ */
/* ________________________________________________________________________ */
/* */
@@
-33,8
+33,8
@@
* Copyright © 2006 Pierre Habouzit
*/
* Copyright © 2006 Pierre Habouzit
*/
-#ifndef
MUTT_LIB_LIB
_STR_H
-#define
MUTT_LIB_LIB
_STR_H
+#ifndef
PFIXTOOLS
_STR_H
+#define
PFIXTOOLS
_STR_H
#include "mem.h"
#include "mem.h"
@@
-338,6
+338,14
@@
static inline const char *m_strnextsp(const char *s) {
return 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))
__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 /*
PFIXTOOLS
_STR_H */