projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't hardcode srsd as the daemon name, use a define.
[apps/pfixtools.git]
/
str.h
diff --git
a/str.h
b/str.h
index
d51b603
..
447e6d4
100644
(file)
--- a/
str.h
+++ b/
str.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))