kern

diff src/klibc/stdio.h @ 5:633e35c64772

- added printf family in stdio.c - added atoi/atol in stdlib.c - added nonstandard itoa/utoa in stdlib.c - added strlen/strchr/strrchr in string.c
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 19 Dec 2010 15:07:07 +0200
parents ebe5e0e44a9d
children
line diff
     1.1 --- a/src/klibc/stdio.h	Fri Dec 10 03:44:34 2010 +0200
     1.2 +++ b/src/klibc/stdio.h	Sun Dec 19 15:07:07 2010 +0200
     1.3 @@ -1,7 +1,19 @@
     1.4  #ifndef STDIO_H_
     1.5  #define STDIO_H_
     1.6  
     1.7 +#include <stdlib.h>
     1.8 +#include <stdarg.h>
     1.9 +
    1.10  int putchar(int c);
    1.11  int puts(const char *s);
    1.12  
    1.13 +int printf(const char *fmt, ...);
    1.14 +int vprintf(const char *fmt, va_list ap);
    1.15 +
    1.16 +int sprintf(char *buf, const char *fmt, ...);
    1.17 +int vsprintf(char *buf, const char *fmt, va_list ap);
    1.18 +
    1.19 +int snprintf(char *buf, size_t sz, const char *fmt, ...);
    1.20 +int vsnprintf(char *buf, size_t sz, const char *fmt, va_list ap);
    1.21 +
    1.22  #endif	/* STDIO_H_ */