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_unix/sys/src/libc/fmt/vseprint.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
 
4
char*
5
vseprint(char *buf, char *e, char *fmt, va_list args)
6
{
7
	Fmt f;
8
 
9
	if(e <= buf)
10
		return nil;
11
	f.runes = 0;
12
	f.start = buf;
13
	f.to = buf;
14
	f.stop = e - 1;
15
	f.flush = nil;
16
	f.farg = nil;
17
	f.nfmt = 0;
18
	f.args = args;
19
	dofmt(&f, fmt);
20
	*(char*)f.to = '\0';
21
	return f.to;
22
}
23