shithub: scc

ref: 2e89286f4ee1ef53e3acb6e4ef4b43909e9fc9e8
dir: /lib/c/src/sprintf.c/

View raw version

#include <stdarg.h>
#include <stdio.h>
#undef sprintf

int
sprintf(char * restrict s, const char * restrict fmt, ...)
{
	int r;

	va_list va;
	va_start(va, fmt);
	r = vsprintf(s, fmt, va);
	va_end(va);

	return r;
}