From d2ffac097dae3aecc900ba5b7ad5f14d57a73fe0 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 6 Nov 2003 00:50:57 +0000 Subject: 2003-11-05 Jeff Johnston Artem B. Bityuckiy * 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. --- newlib/libc/stdio/sprintf.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'newlib/libc/stdio/sprintf.c') 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 <> forces the following <>, <>, <>, <>, <> or <> conversion <[type]> to apply to a <> or <>. <> also forces a following <> <[type]> to - apply to a pointer to a <>. If an <> + apply to a pointer to a <>. <> with <>, <> is + equivalent to <>, <> respectively. If an <> or an <> appears with another conversion specifier, the behavior is undefined. <> forces a following <>, <>, <>, <> or <> 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 <> (same as <>) -- cgit v1.2.3