Converts a wide character string to a multibyte string (see Remarks).
Include
<stdlib.h>
Prototype
size_t wcstombs(char *s, const wchar_t *wcs, size_t n);
Arguments
s
|
points to the multibyte string |
wcs
|
points to the wide character string |
n
|
the number of characters to convert |
Return Value
Returns the number of characters stored excluding the null character.
Remarks
wcstombs
converts n number of multibyte characters unless it encounters
a null character first. The 16-bit compiler does not support multibyte characters with
length greater than 1 character.