blob: 8a2302ff67a7f069226a7bdbc402221fa9314fdc [file] [log] [blame]
Rich Felker0b44a032011-02-12 00:22:29 -05001#include <stdio.h>
2#include <stdarg.h>
Isaac Dunham14f02722013-04-05 23:20:28 -07003#include "libc.h"
Rich Felker0b44a032011-02-12 00:22:29 -05004
Rich Felker400c5e52012-09-06 22:44:55 -04005int sscanf(const char *restrict s, const char *restrict fmt, ...)
Rich Felker0b44a032011-02-12 00:22:29 -05006{
7 int ret;
8 va_list ap;
9 va_start(ap, fmt);
10 ret = vsscanf(s, fmt, ap);
11 va_end(ap);
12 return ret;
13}
Isaac Dunham14f02722013-04-05 23:20:28 -070014
15weak_alias(sscanf,__isoc99_sscanf);