source:
trunk/sys/dietlibc/scanf.c
@
207
Last change on this file since 207 was 1, checked in by , 8 years ago | |
---|---|
File size: 247 bytes |
Rev | Line | |
---|---|---|
[1] | 1 | #include <stdarg.h> |
2 | #include <stdlib.h> | |
3 | #include "dietstdio.h" | |
4 | #include <unistd.h> | |
5 | ||
6 | int scanf(const char *format, ...) { | |
7 | int n; | |
8 | va_list arg_ptr; | |
9 | va_start(arg_ptr, format); | |
10 | n=vfscanf(stdin,format,arg_ptr); | |
11 | va_end (arg_ptr); | |
12 | return n; | |
13 | } |
Note: See TracBrowser
for help on using the repository browser.