summaryrefslogtreecommitdiff
path: root/src/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/string.c b/src/string.c
new file mode 100644
index 0000000..30ccba6
--- /dev/null
+++ b/src/string.c
@@ -0,0 +1,11 @@
+#include "string.h"
+
+void *memset( void *s, int c, size_t n )
+{
+ for( size_t i = 0; i < n; i++ ) {
+ ((uint8_t *)s)[i] = c;
+ }
+
+ return s;
+}
+