diff options
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -1,14 +1,10 @@ #include "types.h" +#include "x86.h" void* memset(void *dst, int c, uint n) { - char *d; - - d = (char*)dst; - while(n-- > 0) - *d++ = c; - + stosb(dst, c, n); return dst; } |