shithub: riscv

ref: 403fef45c1a65aa74c449764e2857597fc03290a
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;
}