source: trunk/libs/newlib/src/newlib/libc/machine/spu/vprintf.c @ 444

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: 490 bytes
Line 
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
12typedef 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
21int
22vprintf (const char *fmt,
23     va_list ap)
24{
25  c99_vprintf_t args;
26
27  CHECK_STD_INIT(_REENT);
28
29  args.fmt = fmt;
30  va_copy(args.ap,ap);
31
32  return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VPRINTF, &args);
33}
34
35#endif /* ! _REENT_ONLY */
Note: See TracBrowser for help on using the repository browser.