summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/sprintf.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-11-06 00:50:57 +0000
committerJeff Johnston <jjohnstn@redhat.com>2003-11-06 00:50:57 +0000
commitd2ffac097dae3aecc900ba5b7ad5f14d57a73fe0 (patch)
treec2a686708e1da50d5caaa7127adf7c69fade7576 /newlib/libc/stdio/sprintf.c
parentda2d12279bf5c0a9fad1b3b6598a24b090e3d6c6 (diff)
downloadcygnal-d2ffac097dae3aecc900ba5b7ad5f14d57a73fe0.tar.gz
cygnal-d2ffac097dae3aecc900ba5b7ad5f14d57a73fe0.tar.bz2
cygnal-d2ffac097dae3aecc900ba5b7ad5f14d57a73fe0.zip
2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
Artem B. Bityuckiy <mail_lists@mail.ru> * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for %ls, %S, %lc, and %C format specifiers. (get_arg): Ditto. * libc/stdio/sprintf.c: Add documentation regarding new format specifiers added in vfprintf.c.
Diffstat (limited to 'newlib/libc/stdio/sprintf.c')
-rw-r--r--newlib/libc/stdio/sprintf.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/newlib/libc/stdio/sprintf.c b/newlib/libc/stdio/sprintf.c
index b440fce18..01be921aa 100644
--- a/newlib/libc/stdio/sprintf.c
+++ b/newlib/libc/stdio/sprintf.c
@@ -205,7 +205,8 @@ DESCRIPTION
<<l>> forces the following <<d>>, <<i>>, <<o>>, <<u>>,
<<x>> or <<X>> conversion <[type]> to apply to a <<long>> or
<<unsigned long>>. <<l>> also forces a following <<n>> <[type]> to
- apply to a pointer to a <<long>>. If an <<h>>
+ apply to a pointer to a <<long>>. <<l>> with <<c>>, <<s>> is
+ equivalent to <<C>>, <<S>> respectively. If an <<h>>
or an <<l>> appears with another conversion
specifier, the behavior is undefined. <<L>> forces a
following <<e>>, <<E>>, <<f>>, <<g>> or <<G>> conversion <[type]> to
@@ -224,10 +225,18 @@ DESCRIPTION
o c
prints <[arg]> as single character
+ o C
+ prints wchar_t <[arg]> as single multibyte character
+
o s
prints characters until precision is reached or a null terminator
is encountered; takes a string pointer
+ o S
+ converts wchar_t characters to multibyte output characters until
+ precision is reached or a null wchar_t terminator
+ is encountered; takes a wchar_t pointer
+
o d
prints a signed decimal integer; takes an <<int>> (same as <<i>>)