From 8ca8d7665d671e10d72b8fcb4d69121d75f7906e Mon Sep 17 00:00:00 2001 From: Eric Biederman Date: Tue, 22 Apr 2003 19:02:15 +0000 Subject: - Initial checkin of the freebios2 tree git-svn-id: svn://svn.coreboot.org/coreboot/trunk@784 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/lib/memset.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/lib/memset.c (limited to 'src/lib/memset.c') diff --git a/src/lib/memset.c b/src/lib/memset.c new file mode 100644 index 0000000000..c1bb4f841f --- /dev/null +++ b/src/lib/memset.c @@ -0,0 +1,12 @@ +#include + +void *memset(void *s, int c, size_t n) +{ + int i; + char *ss = (char *) s; + + for (i = 0; i < n; i++) + ss[i] = c; + + return s; +} -- cgit v1.2.3