source: trunk/sys/dietlibc/vprintf.c @ 360

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

First import

File size: 385 bytes
Line 
1#include <stdarg.h>
2#include <unistd.h>
3#include "dietstdio.h"
4
5int __stdio_outs(const char *s,size_t len) __attribute__((weak));
6int __stdio_outs(const char *s,size_t len) {
7  return (write(1,s,len)==(ssize_t)len)?1:0;
8}
9
10int 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.