summaryrefslogtreecommitdiff
path: root/ulib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ulib.c')
-rw-r--r--ulib.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ulib.c b/ulib.c
index 8e1e1a2..532fe42 100644
--- a/ulib.c
+++ b/ulib.c
@@ -2,7 +2,6 @@
#include "stat.h"
#include "fcntl.h"
#include "user.h"
-#include "x86.h"
char*
strcpy(char *s, const char *t)
@@ -36,7 +35,11 @@ strlen(const char *s)
void*
memset(void *dst, int c, uint n)
{
- stosb(dst, c, n);
+ char *cdst = (char *) dst;
+ int i;
+ for(i = 0; i < n; i++){
+ cdst[i] = c;
+ }
return dst;
}