shithub: scc

ref: b589353e707d07bf1412c206e9e5cfa876e57400
dir: /lib/c/src/printf.c/

View raw version
#include <stdarg.h>
#include <stdio.h>
#undef printf

int
printf(const char * restrict fmt, ...)
{
	int cnt;
	va_list va;

	va_start(va, fmt);
	cnt = vfprintf(stdin, fmt, va);
	va_end(va);
	return cnt;
}