repo.or.cz
/
newlib-cygwin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
devctl.h: update for POSIX-1.2024
[newlib-cygwin.git]
/
newlib
/
libc
/
machine
/
spu
/
vprintf.c
blob
d2ebc4eda3768cd2da81900af6c37984632182b1
1
#include <_ansi.h>
2
#include <stdio.h>
3
4
#include
"c99ppe.h"
5
6
#include <stdarg.h>
7
8
#ifdef INTEGER_ONLY
9
# define vprintf viprintf
10
#endif
11
12
typedef
struct
13
{
14
const char
*
fmt
;
15
unsigned int
pad0
[
3
];
16
va_list
ap
;
17
}
c99_vprintf_t
;
18
19
#ifndef _REENT_ONLY
20
21
int
22
vprintf
(
const char
*
fmt
,
23
va_list
ap
)
24
{
25
c99_vprintf_t args
;
26
27
args
.
fmt
=
fmt
;
28
va_copy
(
args
.
ap
,
ap
);
29
30
return
__send_to_ppe
(
SPE_C99_SIGNALCODE
,
SPE_C99_VPRINTF
, &
args
);
31
}
32
33
#endif
/* ! _REENT_ONLY */