startup and debug led
[rpikern] / src / libc / string.c
diff --git a/src/libc/string.c b/src/libc/string.c
new file mode 100644 (file)
index 0000000..19de177
--- /dev/null
@@ -0,0 +1,10 @@
+#include "string.h"
+
+void *memset(void *ptr, int val, int size)
+{
+       unsigned char *p = ptr;
+       while(size--) {
+               *p++ = val;
+       }
+       return ptr;
+}