summary refs log tree commit diff
path: root/manual
diff options
context:
space:
mode:
Diffstat (limited to 'manual')
-rw-r--r--manual/stdio.texi6
-rw-r--r--manual/time.texi25
2 files changed, 31 insertions, 0 deletions
diff --git a/manual/stdio.texi b/manual/stdio.texi
index 8c6c009c4c..75c3937939 100644
--- a/manual/stdio.texi
+++ b/manual/stdio.texi
@@ -2170,6 +2170,9 @@ type modifier was specified.  For integer conversions, this indicates
 @code{long long int}, as opposed to @code{long double} for floating
 point conversions.
 
+@item unsigned int is_char
+This is a boolean that is true if the @samp{hh} type modifier was specified.
+
 @item unsigned int is_short
 This is a boolean that is true if the @samp{h} type modifier was specified.
 
@@ -2197,6 +2200,9 @@ be used freely by the user-defined handlers but when called from
 the @code{printf} function this variable always contains the value
 @code{0}.
 
+@item unsigned int wide
+This flag is set if the stream is wide oriented.
+
 @item wchar_t pad
 This is the character to use for padding the output to the minimum field
 width.  The value is @code{'0'} if the @samp{0} flag was specified, and
diff --git a/manual/time.texi b/manual/time.texi
index e9548b9b5e..7d5cfdaa65 100644
--- a/manual/time.texi
+++ b/manual/time.texi
@@ -1005,6 +1005,31 @@ is examined before any output is produced.
 For an example of @code{strftime}, see @ref{Time Functions Example}.
 @end deftypefun
 
+@comment time.h
+@comment ISO/Amend1
+@deftypefun size_t wcsftime (wchar_t *@var{s}, size_t @var{size}, const wchar_t *@var{template}, const struct tm *@var{brokentime})
+The @code{wcsftime} function is equivalent to the @code{strftime}
+function with the difference that it operates one wide character
+strings.  The buffer where the result is stored, pointed to by @var{s},
+must be an array of wide characters.  The parameter @var{size} which
+specifies the size of the output buffer gives the number of wide
+character, not the number of bytes.
+
+Also the format string @var{template} is a wide character string.  Since
+all characters needed to specify the format string are in the basic
+characater set it is portably possible to write format strings in the C
+source code using the @code{L"..."} notation.  The parameter
+@var{brokentime} has the same meaning as in the @code{strftime} call.
+
+The @code{wcsftime} function supports the same flags, modifiers, and
+format specifiers as the @code{strftime} function.
+
+The return value of @code{wcsftime} is the number of wide characters
+stored in @code{s}.  When more characters would have to be written than
+can be placed in the buffer @var{s} the return value is zero, with the
+same problems indicated in the @code{strftime} documentation.
+@end deftypefun
+
 @node Parsing Date and Time
 @subsection Convert textual time and date information back