kern

diff src/klibc/stdio.c @ 1:ebe5e0e44a9d

pretty much finished the code for article 1, might do minor adjustments though
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 02 Dec 2010 08:45:41 +0200
parents
children 86781ef20689
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/klibc/stdio.c	Thu Dec 02 08:45:41 2010 +0200
     1.3 @@ -0,0 +1,11 @@
     1.4 +#include <stdio.h>
     1.5 +
     1.6 +/* putchar is defined in term.c */
     1.7 +
     1.8 +int puts(const char *s)
     1.9 +{
    1.10 +	while(*s) {
    1.11 +		putchar(*s++);
    1.12 +	}
    1.13 +	return 0;
    1.14 +}