From fc72c5375813a6bbc0845aca984147a944a7e62a Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Fri, 3 Feb 2006 15:19:58 +0000 Subject: Patch #1417462 by Dan Everton - Improved SDL simulator git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8546 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/sdl/sprintf.h | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) (limited to 'uisimulator/sdl/sprintf.h') 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 @@ +/*************************************************************************** + * __________ __ ___. + * 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 #include #include -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__ */ -- cgit v1.2.3