Last change
on this file since 388 was 388, checked in by coas-nagasima, 5 years ago |
Azure IoT Hub Device C SDK を使ったサンプルの追加
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id
-
Property svn:mime-type
set to
text/x-csrc
|
File size:
489 bytes
|
Line | |
---|
1 | #include "stdio_impl.h"
|
---|
2 | #include "libc.h"
|
---|
3 |
|
---|
4 | static size_t do_read(FILE *f, unsigned char *buf, size_t len)
|
---|
5 | {
|
---|
6 | return __string_read(f, buf, len);
|
---|
7 | }
|
---|
8 |
|
---|
9 | int vsscanf(const char *restrict s, const char *restrict fmt, va_list ap)
|
---|
10 | {
|
---|
11 | FILE f = {
|
---|
12 | .buf = (void *)s, .cookie = (void *)s,
|
---|
13 | .read = do_read, .lock = -1
|
---|
14 | };
|
---|
15 | return vfscanf(&f, fmt, ap);
|
---|
16 | }
|
---|
17 |
|
---|
18 | weak_alias(vsscanf,__isoc99_vsscanf);
|
---|
19 |
|
---|
20 | #ifdef __c2__
|
---|
21 | void _vacopy(va_list a, va_list b)
|
---|
22 | {
|
---|
23 | void *c;
|
---|
24 | c = *(void **)b;
|
---|
25 | *(void **)a = &c;
|
---|
26 | }
|
---|
27 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.