PS2SDK
PS2 Homebrew Libraries
xprintf.h
1 /*
2  * xprinf.h
3  *
4  * Copyright (C) 2007-2009 misfire <misfire@xploderfreax.de>
5  *
6  * Licensed under the Academic Free License version 2.0. See file LICENSE.
7  */
8 
9 #ifndef _XPRINTF_H_
10 #define _XPRINTF_H_
11 
12 #include <stdarg.h>
13 
14 /* Define available functions here */
15 #define F_vxprintf
16 #define NOFLOATINGPOINT /* won't compile without it */
17 #define F___sout
18 
19 //#define F_sprintf
20 //#define F_snprintf
21 //#define F_vsprintf
22 #define F_vsnprintf
23 
24 #ifdef F_sprintf
25 extern int sprintf(char *str, const char *format, ...);
26 #endif
27 
28 #ifdef F_snprintf
29 extern int snprintf(char *str, size_t sz, const char *format, ...);
30 #endif
31 
32 #ifdef F_vsprintf
33 extern int vsprintf(char *buf, const char *fmt, va_list ap);
34 #endif
35 
36 #ifdef F_vsnprintf
37 extern int vsnprintf(char *buf, size_t n, const char *fmt, va_list ap);
38 #endif
39 
40 #endif /* _XPRINTF_H_ */