]> git.lizzy.rs Git - plan9front.git/blob - sys/src/libstdio/sscanf.c
dpost prologue: update /radicalex to fix square displacement (thanks umbraticus and...
[plan9front.git] / sys / src / libstdio / sscanf.c
1 /*
2  * pANS stdio -- sscanf
3  */
4 #include "iolib.h"
5 int sscanf(const char *s, const char *fmt, ...){
6         int n;
7         FILE *f=sopenr(s);
8         va_list args;
9         va_start(args, fmt);
10         n=vfscanf(f, fmt, args);
11         va_end(args);
12         sclose(f);
13         return n;
14 }