File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -861,7 +861,12 @@ wchar_t Support
861861 Copy the Unicode object contents into the :c:type: `wchar_t ` buffer *wstr *. At most
862862 *size * :c:type: `wchar_t ` characters are copied (excluding a possibly trailing
863863 null termination character). Return the number of :c:type:`wchar_t` characters
864- copied or ``-1`` in case of an error. Note that the resulting :c:expr:`wchar_t*`
864+ copied or ``-1`` in case of an error.
865+
866+ When *wstr* is ``NULL``, instead return the *size* that would be required
867+ to store all of *unicode* including a terminating null.
868+
869+ Note that the resulting :c:expr:`wchar_t*`
865870 string may or may not be null-terminated. It is the responsibility of the caller
866871 to make sure that the :c:expr:`wchar_t*` string is null-terminated in case this is
867872 required by the application. Also, note that the :c:expr:`wchar_t*` string
You can’t perform that action at this time.
0 commit comments