[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
mbstowcs

Convert a multibyte character array to a wchar_t array.
Compatibility:
This function is compatible with the following targets:
Prototype:
#include <stddlib.h>
size_t mbstowcs(wchar_t *pwcs,
   const char *s, size_t n);
Parameters:
Parameters for this facility are:
Remarks:
The mbstowcs() function converts a character array containing multibyte characters to a wide character array containing wchar_t type characters. The wchar_t type is defined in stddef.h.
The Metrowerks C implementation of mbstowcs() performs no translation; it copies a maximum of n bytes from the array pointed to by s to the array pointed to by pwcs. The function terminates prematurely if a null character is reached.
Return:
mbstowcs() returns the number of bytes copied from s to pwcs.
See Also:
"Locale specification"
"wcstombs"
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 16, 2000