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 @@ -950,7 +950,12 @@ wchar_t Support
950
950
Copy the Unicode object contents into the :c:type: `wchar_t ` buffer *wstr *. At most
951
951
*size * :c:type: `wchar_t ` characters are copied (excluding a possibly trailing
952
952
null termination character). Return the number of :c:type:`wchar_t` characters
953
- copied or ``-1`` in case of an error. Note that the resulting :c:expr:`wchar_t*`
953
+ copied or ``-1`` in case of an error.
954
+
955
+ When *wstr* is ``NULL``, instead return the *size* that would be required
956
+ to store all of *unicode* including a terminating null.
957
+
958
+ Note that the resulting :c:expr:`wchar_t*`
954
959
string may or may not be null-terminated. It is the responsibility of the caller
955
960
to make sure that the :c:expr:`wchar_t*` string is null-terminated in case this is
956
961
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