chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util, manager: and mempset() and use it
[elogind.git]
/
src
/
shared
/
util.h
diff --git
a/src/shared/util.h
b/src/shared/util.h
index 04c9fcd71e4454830ce7a6f76595bcec1c9ec6d6..f0dfe19ad46252e7b0b65148b2c1eb8fc30e3463 100644
(file)
--- a/
src/shared/util.h
+++ b/
src/shared/util.h
@@
-594,3
+594,8
@@
int search_and_fopen_nulstr(const char *path, const char *mode, const char *sear
} else if (ignore_file((de)->d_name)) \
continue; \
else
+
+static inline void *mempset(void *s, int c, size_t n) {
+ memset(s, c, n);
+ return (char*)s + n;
+}