kern

annotate 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
rev   line source
nuclear@0 1 #include <string.h>
nuclear@0 2
nuclear@0 3 void memset(void *s, int c, size_t sz)
nuclear@0 4 {
nuclear@0 5 int i;
nuclear@0 6 char *ptr = s;
nuclear@0 7
nuclear@0 8 for(i=0; i<sz; i++) {
nuclear@0 9 *ptr++ = c;
nuclear@0 10 }
nuclear@0 11 }