* libc/time/time.tex (wcsftime.def): Include.

* libc/time/wcsftime.c:  Clean up documentation a little.
This commit is contained in:
Corinna Vinschen 2009-03-12 15:34:57 +00:00
parent 14a164a726
commit d75c0f75bc
3 changed files with 20 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2009-03-12 Craig Howland <howland@LGSInnovations.com>
* libc/time/time.tex (wcsftime.def): Include.
* libc/time/wcsftime.c: Clean up documentation a little.
2009-03-12 Craig Howland <howland@LGSInnovations.com> 2009-03-12 Craig Howland <howland@LGSInnovations.com>
* libc/stdio/swscanf.c: Some documentation corrections. * libc/stdio/swscanf.c: Some documentation corrections.

View File

@ -18,6 +18,7 @@ declarations are in @file{wchar.h}.
* wcscpy:: Copy wide-character string * wcscpy:: Copy wide-character string
* wcpcpy:: Copy a wide-character string returning a pointer to its end * wcpcpy:: Copy a wide-character string returning a pointer to its end
* wcscspn:: Count wide characters not in string * wcscspn:: Count wide characters not in string
* wcsftime:: Convert date and time to a formatted wide-character string
* wcslcat:: Concatenate wide-character strings to specified length * wcslcat:: Concatenate wide-character strings to specified length
* wcslcpy:: Copy wide-character string to specified length * wcslcpy:: Copy wide-character string to specified length
* wcslen:: Wide-character string length * wcslen:: Wide-character string length
@ -72,6 +73,9 @@ declarations are in @file{wchar.h}.
@page @page
@include string/wcscspn.def @include string/wcscspn.def
@page
@include time/wcsftime.def
@page @page
@include string/wcslcat.def @include string/wcslcat.def

View File

@ -20,17 +20,21 @@ ANSI_SYNOPSIS
const wchar_t *<[format]>, const struct tm *<[timp]>); const wchar_t *<[format]>, const struct tm *<[timp]>);
DESCRIPTION DESCRIPTION
<<strftime>> is equivalent to <<strftime>>, except that: <<wcsftime>> is equivalent to <<strftime>>, 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. 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. 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 <<strftime>> for the details of the format specifiers. See <<strftime>> for the details of the format specifiers.
@ -52,10 +56,10 @@ value beforehand to distinguish between failure and an empty string.
This implementation does not support <<s>> being NULL, nor overlapping This implementation does not support <<s>> being NULL, nor overlapping
<<s>> and <<format>>. <<s>> and <<format>>.
<<wcsftime>> requires no supporting OS subroutines.
SEEALSO SEEALSO
<<strftime>> <<strftime>>
<<wcsftime>> requires no supporting OS subroutines.
*/ */
#include <time.h> #include <time.h>