summaryrefslogtreecommitdiff
path: root/uisimulator/sdl/sprintf.h
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-02-03 15:19:58 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-02-03 15:19:58 +0000
commitfc72c5375813a6bbc0845aca984147a944a7e62a (patch)
tree347a6a9297f9f4d3131c8268f450d6ba227d0246 /uisimulator/sdl/sprintf.h
parent347992e9d93ed0f91cde7e2d580cfdc8d5eb95f4 (diff)
downloadrockbox-fc72c5375813a6bbc0845aca984147a944a7e62a.zip
rockbox-fc72c5375813a6bbc0845aca984147a944a7e62a.tar.gz
rockbox-fc72c5375813a6bbc0845aca984147a944a7e62a.tar.bz2
rockbox-fc72c5375813a6bbc0845aca984147a944a7e62a.tar.xz
Patch #1417462 by Dan Everton - Improved SDL simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8546 a1c6a512-1295-4272-9138-f99709370657
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 64a22f3..24e1d4e 100644
--- a/uisimulator/sdl/sprintf.h
+++ b/uisimulator/sdl/sprintf.h
@@ -1,12 +1,36 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright (C) 2002 by Felix Arends
+ *
+ * All files in this archive are subject to the GNU General Public License.
+ * See the file COPYING in the source tree root for full license agreement.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+
+#ifndef __SPRINTF_H__
+#define __SPRINTF_H__
+
+#include <stddef.h>
#include <stdarg.h>
#include <stdio.h>
-int rockbox_snprintf (char *buf, size_t size, const char *fmt, ...);
-int rockbox_vsnprintf (char *buf, int size, const char *fmt, va_list ap);
+int snprintf (char *buf, size_t size, const char *fmt, ...);
+char *strtok_r (char *, const char *, char **);
+
int rockbox_fprintf (int fd, const char *fmt, ...);
+#define fprintf rockbox_fprintf
-#ifndef NO_REDEFINES_PLEASE
-#define snprintf rockbox_snprintf
+int rockbox_vsnprintf (char *buf, int size, const char *fmt, va_list ap);
#define vsnprintf rockbox_vsnprintf
-#define fprintf rockbox_fprintf
-#endif
+
+#endif /* __SPRINTF_H__ */