shithub: scc

ref: 955a99b7c855cfc2378a9857bfbb8cb853047d6c
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;
}