source: trunk/sys/dietlibc/vfprintf.c @ 253

Last change on this file since 253 was 1, checked in by alain, 8 years ago

First import

File size: 359 bytes
Line 
1#include <stdarg.h>
2#include <unistd.h>
3#include <stdlib.h>
4#include "dietstdio.h"
5
6static int __fwrite(void*ptr, size_t nmemb, FILE* f) {
7  return fwrite(ptr,1,nmemb,f);
8}
9
10int 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.