diff options
Diffstat (limited to 'lib/stdlib/memset.c')
-rw-r--r-- | lib/stdlib/memset.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/stdlib/memset.c b/lib/stdlib/memset.c new file mode 100644 index 0000000..ccd46dd --- /dev/null +++ b/lib/stdlib/memset.c @@ -0,0 +1,7 @@ +void * +memset(void *s, int c, long unsigned n) +{ + char *pDest = (char *)s; + for (unsigned i = 0; i < n; ++i) pDest[i] = c; + return s; +} |