shithub: scc

ref: c47ff0a1a12dbf6ebeb5aac05d0811ef1e1a0455
dir: /libc/src/printf.c/

View raw version
/* See LICENSE file for copyright and license details. */

#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;
}