Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_tlsv12/sys/src/libc/fmt/fmtvprint.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <u.h>
2
#include <libc.h>
3
#include "fmtdef.h"
4
 
5
 
6
/*
7
 * format a string into the output buffer
8
 * designed for formats which themselves call fmt
9
 */
10
int
11
fmtvprint(Fmt *f, char *fmt, va_list args)
12
{
13
	va_list va;
14
	int n;
15
 
16
	va = f->args;
17
	f->args = args;
18
	n = dofmt(f, fmt);
19
	f->args = va;
20
	if(n >= 0)
21
		return 0;
22
	return n;
23
}
24