blob: a27a8d73d3a53c0094bfc099aecbd95e7390c597 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include <stdio.h>
#include <stdarg.h>
#include "_stdio.h"
/** write formatted output **/
int vprintf(const char * restrict format, va_list arg)
{
int ret = 0;
struct io_options opt = {0};
opt.fnname = "vfprintf";
opt.stream = stdout;
ret = __printf(&opt, format, arg);
/*
RETURN_SUCCESS(the number of characters written);
RETURN_FAILURE(NEGATIVE());
*/
return ret;
}
/***
is equivalent to FUNCTION(printf), but with a TYPEDEF(va_list)
argument instead of variadic arguments. The argument ARGUMENT(arg) must be
initialized with FUNCTION(va_start) prior to calling THIS(). The THIS()
function does not call FUNCTION(va_end), so the calling function is
responsible for this.
***/
/*
STDC(1)
*/
|