kern

view src/klibc/string.c @ 0:662ff2170531

starting the kernel
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 01 Dec 2010 22:02:42 +0200
parents
children ebe5e0e44a9d
line source
1 #include <string.h>
3 void memset(void *s, int c, size_t sz)
4 {
5 int i;
6 char *ptr = s;
8 for(i=0; i<sz; i++) {
9 *ptr++ = c;
10 }
11 }