Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <u.h>
2
#include <libc.h>
3
 
4
char*
5
esmprint(char *fmt, ...)
6
{
7
	va_list args;
8
	char *p;
9
 
10
	va_start(args, fmt);
11
	p = vsmprint(fmt, args);
12
	va_end(args);
13
	if (p == nil)
14
		sysfatal("esmprint: out of memory: %r");
15
	setmalloctag(p, getcallerpc(&fmt));
16
	return p;
17
}