[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
mbtowc

Translate a multibyte character to a wchar_t type.
Compatibility:
This function is compatible with the following targets:
Prototype:
#include <stdlib.h>
int mbtowc(wchar_t *pwc,
   const char *s, size_t n);
Parameters:
Parameters for this facility are:
Remarks:
The mbtowc() function converts a multibyte character, pointed to by s, to a character of type wchar_t, pointed to by pwc. The function converts a maximum of n bytes.
The Metrowerks C implementation performs no translation; it copies the first character at s to the first character at pwc.
Return:
mbtowc() returns -1 if n is zero and s is not a null pointer.
mbtowc() returns 0 if s is a null pointer or s points to a null character ('\0').
mbtowc() returns 1 if s is not a null pointer and it does not point to a null character ('\0').
See Also:
"Locale specification"
"mblen"
"wctomb"
[ 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