projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
exec plugin: Implemented a first version.
[collectd.git]
/
src
/
common.h
diff --git
a/src/common.h
b/src/common.h
index
ce1ffe5
..
9164cc2
100644
(file)
--- a/
src/common.h
+++ b/
src/common.h
@@
-31,6
+31,8
@@
} \
(ptr) = NULL
+#define STATIC_ARRAY_SIZE(a) (sizeof (a) / sizeof (*(a)))
+
void sstrncpy(char *d, const char *s, int len);
char *sstrdup(const char *s);
void *smalloc(size_t size);