summaryrefslogtreecommitdiff
path: root/ulib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ulib.c')
-rw-r--r--ulib.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ulib.c b/ulib.c
index ccb9fd6..b759f45 100644
--- a/ulib.c
+++ b/ulib.c
@@ -26,6 +26,17 @@ strlen(char *s)
return n;
}
+void *
+memset(void *dst, int c, unsigned int n)
+{
+ char *d = (char *) dst;
+
+ while(n-- > 0)
+ *d++ = c;
+
+ return dst;
+}
+
char *
gets(char *buf, int max)
{