diff options
Diffstat (limited to 'sys/lib/string/memset.c')
-rw-r--r-- | sys/lib/string/memset.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/lib/string/memset.c b/sys/lib/string/memset.c index f8f3c9c..df0672c 100644 --- a/sys/lib/string/memset.c +++ b/sys/lib/string/memset.c @@ -38,3 +38,13 @@ memset(void *s, int c, size_t n) return s; } + +void * +memset64(void *s, int c, size_t n) +{ + for (size_t i = 0; i < n; ++i) { + ((uint32_t *)s)[i] = c; + } + + return s; +} |