Sign in
cobalt
/
cobalt
/
25902c6cb1ab9cfd8ae2ee6b0fb52953f73deda5
/
.
/
third_party
/
musl
/
src
/
stdio
/
vdprintf.c
blob: 3b9c093bdab85535852bffa3673a821f921ef48f [
file
] [
log
] [
blame
]
#include
"stdio_impl.h"
int
vdprintf
(
int
fd
,
const
char
*
restrict fmt
,
va_list ap
)
{
FILE
f
=
{
.
fd
=
fd
,
.
lbf
=
EOF
,
.
write
=
__stdio_write
,
.
buf
=
(
void
*)
fmt
,
.
buf_size
=
0
,
.
lock
=
-
1
};
return
vfprintf
(&
f
,
fmt
,
ap
);
}