summaryrefslogtreecommitdiff
path: root/lib/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/string.h')
-rw-r--r--lib/string.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/string.h b/lib/string.h
index bf0b7cb0..75cb88dd 100644
--- a/lib/string.h
+++ b/lib/string.h
@@ -39,6 +39,16 @@ xstrdup(const char *c)
return z;
}
+static inline void
+memset32(void *D, u32 val, uint n)
+{
+ u32 *dst = D;
+ uint i;
+
+ for (i = 0; i < n; i++)
+ dst[i] = val;
+}
+
#define ROUTER_ID_64_LENGTH 23
#endif