sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
xprintf.h
Go to the documentation of this file.
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
13#ifndef _XPRINTF_H_
14#define _XPRINTF_H_
15
16#include <stdarg.h>
17
18/* Define available functions here */
19#define F_vxprintf
20#define NOFLOATINGPOINT /* won't compile without it */
21#define F___sout
22
23//#define F_sprintf
24//#define F_snprintf
25//#define F_vsprintf
26#define F_vsnprintf
27
28#ifdef F_sprintf
29extern int sprintf(char *str, const char *format, ...);
30#endif
31
32#ifdef F_snprintf
33extern int snprintf(char *str, size_t sz, const char *format, ...);
34#endif
35
36#ifdef F_vsprintf
37extern int vsprintf(char *buf, const char *fmt, va_list ap);
38#endif
39
40#ifdef F_vsnprintf
41extern int vsnprintf(char *buf, size_t n, const char *fmt, va_list ap);
42#endif
43
44#endif /* _XPRINTF_H_ */