Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4973 | right-hear | 1 | /* Copyright (C) 1999 DJ Delorie, see COPYING.DJ for details */ |
2 | /* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */ |
||
3 | #include |
||
4 | #include |
||
5 | #include |
||
6 | #include |
||
7 | |||
8 | int |
||
9 | vsscanf(const char *str, const char *fmt, va_list ap) |
||
10 | { |
||
11 | FILE _strbuf; |
||
12 | |||
13 | _strbuf._flag = _IOREAD|_IOSTRG|_IONTERM; |
||
14 | _strbuf._ptr = _strbuf._base = unconst(str, char *); |
||
15 | _strbuf._cnt = 0; |
||
16 | while (*str++) |
||
17 | _strbuf._cnt++; |
||
18 | _strbuf._bufsiz = _strbuf._cnt; |
||
19 | return _doscan(&_strbuf, fmt, ap); |
||
20 | } |