kern
diff src/klibc/string.c @ 2:86781ef20689
added hardware scrolling, memset16 and temporary keyboard input for testing
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 04 Dec 2010 08:04:43 +0200 |
parents | ebe5e0e44a9d |
children | 0489a34ab348 |
line diff
1.1 --- a/src/klibc/string.c Thu Dec 02 08:45:41 2010 +0200 1.2 +++ b/src/klibc/string.c Sat Dec 04 08:04:43 2010 +0200 1.3 @@ -8,6 +8,14 @@ 1.4 } 1.5 } 1.6 1.7 +void memset16(void *s, int c, size_t n) 1.8 +{ 1.9 + short *ptr = s; 1.10 + while(n--) { 1.11 + *ptr++ = c; 1.12 + } 1.13 +} 1.14 + 1.15 void *memcpy(void *dest, const void *src, size_t n) 1.16 { 1.17 char *dptr = dest;