2021-05-09 17:34:00 +02:00
|
|
|
#include <stdio.h>
|
2021-06-07 18:57:11 +02:00
|
|
|
#include <fxlibc/printf.h>
|
2020-09-17 19:27:01 +02:00
|
|
|
|
2021-06-07 18:57:11 +02:00
|
|
|
int vdprintf(int fd, char const * restrict fmt, va_list args)
|
2020-09-17 19:27:01 +02:00
|
|
|
{
|
2021-06-07 18:57:11 +02:00
|
|
|
if(fd < 0) return -1;
|
2020-09-17 19:27:01 +02:00
|
|
|
|
2021-06-07 18:57:11 +02:00
|
|
|
struct __printf_output out = {
|
|
|
|
.fd = fd,
|
|
|
|
.size = 65536,
|
|
|
|
};
|
2020-09-17 19:27:01 +02:00
|
|
|
|
2021-06-07 18:57:11 +02:00
|
|
|
return __printf(&out, fmt, &args);
|
2020-09-17 19:27:01 +02:00
|
|
|
}
|