diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-03-12 15:34:57 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-03-12 15:34:57 +0000 |
commit | d75c0f75bc055d1644243969dc02ac1b1c7a0615 (patch) | |
tree | 98d75e91b46b6ecd1dbd180829cb215fd6e65721 /newlib | |
parent | 14a164a726b944cb6f2963721b01d5a593dd7398 (diff) | |
download | cygnal-d75c0f75bc055d1644243969dc02ac1b1c7a0615.tar.gz cygnal-d75c0f75bc055d1644243969dc02ac1b1c7a0615.tar.bz2 cygnal-d75c0f75bc055d1644243969dc02ac1b1c7a0615.zip |
* libc/time/time.tex (wcsftime.def): Include.
* libc/time/wcsftime.c: Clean up documentation a little.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/string/wcstrings.tex | 4 | ||||
-rw-r--r-- | newlib/libc/time/wcsftime.c | 18 |
3 files changed, 20 insertions, 7 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 426eb7071..aa135e05f 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,5 +1,10 @@ 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> + * libc/stdio/swscanf.c: Some documentation corrections. 2009-03-12 Craig Howland <howland@LGSInnovations.com> diff --git a/newlib/libc/string/wcstrings.tex b/newlib/libc/string/wcstrings.tex index 298d2bc71..5b9c22069 100644 --- a/newlib/libc/string/wcstrings.tex +++ b/newlib/libc/string/wcstrings.tex @@ -18,6 +18,7 @@ declarations are in @file{wchar.h}. * wcscpy:: Copy wide-character string * wcpcpy:: Copy a wide-character string returning a pointer to its end * 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 * wcslcpy:: Copy wide-character string to specified length * wcslen:: Wide-character string length @@ -73,6 +74,9 @@ declarations are in @file{wchar.h}. @include string/wcscspn.def @page +@include time/wcsftime.def + +@page @include string/wcslcat.def @page diff --git a/newlib/libc/time/wcsftime.c b/newlib/libc/time/wcsftime.c index 323a6c2eb..ac71a0941 100644 --- a/newlib/libc/time/wcsftime.c +++ b/newlib/libc/time/wcsftime.c @@ -20,17 +20,21 @@ ANSI_SYNOPSIS const wchar_t *<[format]>, const struct tm *<[timp]>); 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. -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 <<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 <<s>> and <<format>>. +<<wcsftime>> requires no supporting OS subroutines. + SEEALSO <<strftime>> - -<<wcsftime>> requires no supporting OS subroutines. */ #include <time.h> |