git: 9front

ref: 91dcdfb43f97369d0a7f521c667b47c7052e759a
dir: /sys/src/libc/fmt/smprint.c/

View raw version
#include <u.h>
#include <libc.h>

char*
smprint(char *fmt, ...)
{
	va_list args;
	char *p;

	va_start(args, fmt);
	p = vsmprint(fmt, args);
	va_end(args);
	setmalloctag(p, getcallerpc(&fmt));
	return p;
}