summaryrefslogtreecommitdiff
path: root/uisimulator/sdl/sprintf.h
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/sdl/sprintf.h')
-rw-r--r--uisimulator/sdl/sprintf.h36
1 files changed, 30 insertions, 6 deletions
diff --git a/uisimulator/sdl/sprintf.h b/uisimulator/sdl/sprintf.h
index 64a22f3c6e..24e1d4e352 100644
--- a/uisimulator/sdl/sprintf.h
+++ b/uisimulator/sdl/sprintf.h
@@ -1,12 +1,36 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2002 by Felix Arends
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20#ifndef __SPRINTF_H__
21#define __SPRINTF_H__
22
23#include <stddef.h>
1#include <stdarg.h> 24#include <stdarg.h>
2#include <stdio.h> 25#include <stdio.h>
3 26
4int rockbox_snprintf (char *buf, size_t size, const char *fmt, ...); 27int snprintf (char *buf, size_t size, const char *fmt, ...);
5int rockbox_vsnprintf (char *buf, int size, const char *fmt, va_list ap); 28char *strtok_r (char *, const char *, char **);
29
6int rockbox_fprintf (int fd, const char *fmt, ...); 30int rockbox_fprintf (int fd, const char *fmt, ...);
31#define fprintf rockbox_fprintf
7 32
8#ifndef NO_REDEFINES_PLEASE 33int rockbox_vsnprintf (char *buf, int size, const char *fmt, va_list ap);
9#define snprintf rockbox_snprintf
10#define vsnprintf rockbox_vsnprintf 34#define vsnprintf rockbox_vsnprintf
11#define fprintf rockbox_fprintf 35
12#endif 36#endif /* __SPRINTF_H__ */