Commit graph

8 commits

Author SHA1 Message Date
Sean Cross
7321bd91ad vsprintf: Emit '\r' when printing '\n'
Since putc() doesn't automatically print '\r' when '\n' is printed,
we must manually do this conversion ourselves.

Signed-off-by: Sean Cross <xobs@kosagi.com>
2015-02-04 21:30:59 +08:00
Sean Cross
eacfd9ff72 vsprintf: Fix <sys/string.h> include on Novena
This file does not exist.  Include <string.h> instead.

Signed-off-by: Sean Cross <xobs@kosagi.com>
2015-02-02 16:42:32 +08:00
Mandl
eba08f0218 bionic: fix gcc build
The memset() prototype from glibc includes __THROW and __nonnull as
decorators, which are nonstandard.  Remove these for additional
compatibility with gcc.

Additionally, remove linux/types.h and linux/string.h, and replace them
with sys/types.h and sys/string.h.
2015-01-14 12:16:46 +08:00
Sean Cross
2cad716460 vsprintf: Fix build warning for %t
Signed-off-by: Sean Cross <xobs@kosagi.com>
2014-12-30 16:18:39 +08:00
Sean Cross
58d7c3b17a vsprintf: expose strtoul function
This function is a wrapper around simple_strtoul, and allows us to expose
it, replacing the one in bionic.c.

Signed-off-by: Sean Cross <xobs@kosagi.com>
2014-11-28 17:33:36 +08:00
Sean Cross
1c3ef737bf fernly: Fix printf("%d") > 99999
This adds lots of divison code, which fixes, among other things,
calling printf() with %d greater than 99999.
2014-09-11 13:15:37 +08:00
Sean Cross
52c7aa83b8 vsprintf: Fix string printing
It would previously only print out the first character.
2014-09-09 13:59:43 +08:00
Sean Cross
7cb334571e fernly: wip 2014-07-04 17:31:32 +08:00