Index: libc/time/time.tex =================================================================== RCS file: /cvs/src/src/newlib/libc/time/time.tex,v retrieving revision 1.5 diff -p -u -r1.5 time.tex --- libc/time/time.tex 9 Mar 2009 12:35:03 -0000 1.5 +++ libc/time/time.tex 12 Mar 2009 14:44:59 -0000 @@ -60,6 +60,7 @@ effect or not. * time:: Get current calendar time (as single number) * __tz_lock:: Lock time zone global variables * tzset:: Set timezone info +* wcsftime:: Convert date and time to a formatted wide-character string @end menu @page @@ -94,3 +95,6 @@ effect or not. @page @include time/tzset.def + +@page +@include time/wcsftime.def Index: libc/time/wcsftime.c =================================================================== RCS file: /cvs/src/src/newlib/libc/time/wcsftime.c,v retrieving revision 1.1 diff -p -u -r1.1 wcsftime.c --- libc/time/wcsftime.c 9 Mar 2009 12:35:03 -0000 1.1 +++ libc/time/wcsftime.c 12 Mar 2009 14:44:59 -0000 @@ -20,17 +20,21 @@ ANSI_SYNOPSIS const wchar_t *<[format]>, const struct tm *<[timp]>); DESCRIPTION -<> is equivalent to <>, except that: +<> is equivalent to <>, except that: -The argument s points to the initial element of an array of wide characters +O+ +o The argument s points to the initial element of an array of wide characters into which the generated output is to be placed. -The argument maxsize indicates the limiting number of wide characters. +o The argument maxsize indicates the limiting number of wide characters. -The argument format is a wide-character string and the conversion specifiers +o The argument format is a wide-character string and the conversion specifiers are replaced by corresponding sequences of wide characters. -The return value indicates the number of wide characters. +o The return value indicates the number of wide characters. +O- +(The difference in all of the above being wide characters versus regular +characters.) See <> for the details of the format specifiers. @@ -52,10 +56,10 @@ value beforehand to distinguish between This implementation does not support <> being NULL, nor overlapping <> and <>. +<> requires no supporting OS subroutines. + SEEALSO <> - -<> requires no supporting OS subroutines. */ #include