coreboot-kgpe-d16/util/mkelfImage/kunzip_src/lib/memset.c

13 lines
147 B
C

#include <string.h>
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;
}