shithub: riscv

ref: a898d31f76b7424aeb65b07350cec3539620d50e
dir: /sys/src/ape/lib/ap/stdio/scanf.c/

View raw version
/*
 * pANS stdio -- scanf
 */
#include "iolib.h"
int scanf(const char *fmt, ...){
	int n;
	va_list args;
	va_start(args, fmt);
	n=vfscanf(stdin, fmt, args);
	va_end(args);
	return n;
}