errno_t wcstombs_s(
size_t *pReturnValue,
char *mbstr,
size_t sizeInBytes,
const wchar_t *wcstr,
size_t count
);
Microsoft VS2019's documentation says:
pReturnValue
The size in bytes of the converted string, including the null terminator....
If
wcstombs_s
successfully converts the source string, it puts the size in bytes of the converted string, including the null terminator, into*pReturnValue
(providedpReturnValue
is not NULL).
cppreference.com's documentation says:
retval - pointer to a size_t object where the result will be stored
...
Returns zero on success (in which case the number of bytes excluding terminating zero that were, or would be written to
dst
, is stored in*retval
)
Who is wrong ?
_s
functions that precede the_s
functions now in the C++ standard.