source:
trunk/sys/dietlibc/vfprintf.c
@
195
Last change on this file since 195 was 1, checked in by , 8 years ago | |
---|---|
File size: 359 bytes |
Rev | Line | |
---|---|---|
[1] | 1 | #include <stdarg.h> |
2 | #include <unistd.h> | |
3 | #include <stdlib.h> | |
4 | #include "dietstdio.h" | |
5 | ||
6 | static int __fwrite(void*ptr, size_t nmemb, FILE* f) { | |
7 | return fwrite(ptr,1,nmemb,f); | |
8 | } | |
9 | ||
10 | int vfprintf(FILE *stream, const char *format, va_list arg_ptr) | |
11 | { | |
12 | struct arg_printf ap = { stream, (int(*)(void*,size_t,void*)) __fwrite }; | |
13 | return __v_printf(&ap,format,arg_ptr); | |
14 | } |
Note: See TracBrowser
for help on using the repository browser.