summaryrefslogtreecommitdiff
path: root/sys/src/ape/lib/ap/stdio/sscanf.c
blob: 3e1d9b67511bae71959dde1de495c6e7e5030289 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * pANS stdio -- sscanf
 */
#include "iolib.h"
int sscanf(const char *s, const char *fmt, ...){
	int n;
	FILE *f=_IO_sopenr(s);
	va_list args;
	va_start(args, fmt);
	n=vfscanf(f, fmt, args);
	va_end(args);
	_IO_sclose(f);
	return n;
}