shithub: riscv

ref: 54e1b8431e7888fc194fa1b45daf57e70ca78dd1
dir: /sys/src/libstdio/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;
}