source:
trunk/sys/dietlibc/vprintf.c
@
191
Last change on this file since 191 was 1, checked in by , 8 years ago | |
---|---|
File size: 385 bytes |
Rev | Line | |
---|---|---|
[1] | 1 | #include <stdarg.h> |
2 | #include <unistd.h> | |
3 | #include "dietstdio.h" | |
4 | ||
5 | int __stdio_outs(const char *s,size_t len) __attribute__((weak)); | |
6 | int __stdio_outs(const char *s,size_t len) { | |
7 | return (write(1,s,len)==(ssize_t)len)?1:0; | |
8 | } | |
9 | ||
10 | int vprintf(const char *format, va_list ap) | |
11 | { | |
12 | struct arg_printf _ap = { 0, (int(*)(void*,size_t,void*)) __stdio_outs }; | |
13 | return __v_printf(&_ap,format,ap); | |
14 | } | |
15 |
Note: See TracBrowser
for help on using the repository browser.