Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 1 | #include <stdio.h> |
| 2 | #include <stdarg.h> |
Isaac Dunham | 14f0272 | 2013-04-05 23:20:28 -0700 | [diff] [blame] | 3 | #include "libc.h" |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 4 | |
Rich Felker | 400c5e5 | 2012-09-06 22:44:55 -0400 | [diff] [blame] | 5 | int sscanf(const char *restrict s, const char *restrict fmt, ...) |
Rich Felker | 0b44a03 | 2011-02-12 00:22:29 -0500 | [diff] [blame] | 6 | { |
| 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 Dunham | 14f0272 | 2013-04-05 23:20:28 -0700 | [diff] [blame] | 14 | |
| 15 | weak_alias(sscanf,__isoc99_sscanf); |