Line | |
---|
1 | /*
|
---|
2 | * vsscanf - read formatted output from a string
|
---|
3 | */
|
---|
4 |
|
---|
5 | #include <stdio.h>
|
---|
6 | #include <stdarg.h>
|
---|
7 | #include <string.h>
|
---|
8 | #include "loc_incl.h"
|
---|
9 |
|
---|
10 | int vsscanf(const char *s, const char *format, va_list ap)
|
---|
11 | {
|
---|
12 | FILE tmp_stream;
|
---|
13 |
|
---|
14 | tmp_stream._fd = -1;
|
---|
15 | tmp_stream._flags = _IOREAD + _IONBF + _IOREADING;
|
---|
16 | tmp_stream._buf = (unsigned char *) s;
|
---|
17 | tmp_stream._ptr = (unsigned char *) s;
|
---|
18 | tmp_stream._count = strlen(s);
|
---|
19 |
|
---|
20 | return _doscan(&tmp_stream, format, ap);
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.