Last change
on this file since 444 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
594 bytes
|
Line | |
---|
1 | |
---|
2 | #include <_ansi.h> |
---|
3 | #include <stdio.h> |
---|
4 | |
---|
5 | #include "c99ppe.h" |
---|
6 | |
---|
7 | #include <stdarg.h> |
---|
8 | |
---|
9 | #ifdef INTEGER_ONLY |
---|
10 | # define vsprintf vsiprintf |
---|
11 | #endif |
---|
12 | |
---|
13 | typedef struct |
---|
14 | { |
---|
15 | char *str; |
---|
16 | unsigned int pad0[ 3 ]; |
---|
17 | char *fmt; |
---|
18 | unsigned int pad1[ 3 ]; |
---|
19 | va_list ap; |
---|
20 | } c99_vsprintf_t; |
---|
21 | |
---|
22 | #ifndef _REENT_ONLY |
---|
23 | |
---|
24 | int |
---|
25 | vsprintf (char *__restrict str, |
---|
26 | const char *__restrict fmt, |
---|
27 | va_list ap) |
---|
28 | { |
---|
29 | c99_vsprintf_t args; |
---|
30 | |
---|
31 | CHECK_STR_INIT(_REENT); |
---|
32 | |
---|
33 | args.str = str; |
---|
34 | args.fmt = (char*) fmt; |
---|
35 | va_copy(args.ap,ap); |
---|
36 | |
---|
37 | return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VSPRINTF, &args); |
---|
38 | } |
---|
39 | |
---|
40 | #endif /* ! _REENT_ONLY */ |
---|
Note: See
TracBrowser
for help on using the repository browser.