summaryrefslogtreecommitdiff
path: root/firmware/common/sprintf.c (follow)
Commit message (Collapse)AuthorAge
* Move c/h files implementing/defining standard library stuff into a new libc ↵Thomas Martitz2010-05-06
| | | | | | | | directory, also standard'ify some parts of the code base (almost entirely #include fixes). This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657
* Rename vfnprintf to vuprintf (u stands for user for the user callback and ↵Thomas Martitz2009-11-03
| | | | | | data passed to it) to avoid confusion with file and buffer size related functions from the printf-family, and add a comment to its declaration. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23503 a1c6a512-1295-4272-9138-f99709370657
* A new implementation of logf, logfdisplay and logfdump.Maurus Cuelenaere2009-08-21
| | | | | | | | Flyspray: FS#10528 Author: Amaury Pouly git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22462 a1c6a512-1295-4272-9138-f99709370657
* Fix a small bug in %x when padding is being addedKarl Kurbjun2008-11-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19092 a1c6a512-1295-4272-9138-f99709370657
* Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg2008-06-28
| | | | | | | | | later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
* Oops. Should've used the unsigned local variables.Michael Sevakis2007-03-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12857 a1c6a512-1295-4272-9138-f99709370657
* Add %u and %lu formats to format(). Coming up: logf fixes.Michael Sevakis2007-03-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12856 a1c6a512-1295-4272-9138-f99709370657
* Do the sprintf .precision format in a safer way.Barry Wardell2007-03-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12846 a1c6a512-1295-4272-9138-f99709370657
* Add support for the .precision format in the sprintf()-like functions to ↵Barry Wardell2007-03-19
| | | | | | allow limiting the maximum length of a string. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12838 a1c6a512-1295-4272-9138-f99709370657
* Cygwin-built simulator can produce garbled debugging output without our snprintfSteve Bavin2006-10-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11235 a1c6a512-1295-4272-9138-f99709370657
* Do not use our simple snprintf in simulator, becauseTomasz Malesinski2006-10-12
| | | | | | | | ALSA library requires a more advanced one. Fixes the problem with ALSA on Linux. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11206 a1c6a512-1295-4272-9138-f99709370657
* Initial gcc4 warning cleanup (and some minor policing)Daniel Stenberg2005-11-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8063 a1c6a512-1295-4272-9138-f99709370657
* more long policyJean-Philippe Bernardy2005-02-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6065 a1c6a512-1295-4272-9138-f99709370657
* Build cleanup and general fixes. fprintf() is now fdprintf(), the separationDaniel Stenberg2005-02-22
| | | | | | | between uisimulator files and firmware/apps files are better done. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6031 a1c6a512-1295-4272-9138-f99709370657
* TABs removedJens Arnold2005-01-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5645 a1c6a512-1295-4272-9138-f99709370657
* Support for %l* plus __attribute__ printf supportJean-Philippe Bernardy2005-01-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5641 a1c6a512-1295-4272-9138-f99709370657
* (v)snprintf() wrote past buffer end if string length was equal to buffer sizeJens Arnold2004-04-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4549 a1c6a512-1295-4272-9138-f99709370657
* Fixed bad %x handlingLinus Nielsen Feltzing2003-05-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3695 a1c6a512-1295-4272-9138-f99709370657
* remove the ifdef for simulatorDaniel Stenberg2003-04-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3616 a1c6a512-1295-4272-9138-f99709370657
* use size_t and not int as the prototype says soDaniel Stenberg2003-04-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3614 a1c6a512-1295-4272-9138-f99709370657
* include the sprintf.h header, basicly for simulator purposesDaniel Stenberg2003-04-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3612 a1c6a512-1295-4272-9138-f99709370657
* kill warningDaniel Stenberg2003-03-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3455 a1c6a512-1295-4272-9138-f99709370657
* only do the fprintf() if not doing a simulator, since this file is usedDaniel Stenberg2003-03-16
| | | | | | | | for the win32 simulator and the fprintf() of Rockbox differs slightly from how the true POSIX one is (the first argument). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3452 a1c6a512-1295-4272-9138-f99709370657
* introducing fprintf():Daniel Stenberg2003-03-16
| | | | | | | | | int fprintf(int fd, const char *fmt, ...) Returns number of bytes written to the file descriptor. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3450 a1c6a512-1295-4272-9138-f99709370657
* bad bad bad snprintf() overflow the buffer if the string passed in with aDaniel Stenberg2002-08-23
| | | | | | | %s didn't fit within the buffer! git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1943 a1c6a512-1295-4272-9138-f99709370657
* Revert last changeBjörn Stenberg2002-05-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@381 a1c6a512-1295-4272-9138-f99709370657
* Added support for %%Björn Stenberg2002-05-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@380 a1c6a512-1295-4272-9138-f99709370657
* Added Gary's snprintf() and changed all places to use it.Björn Stenberg2002-05-02
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@379 a1c6a512-1295-4272-9138-f99709370657