[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
wcstombs

Translate a wchar_t type character array to a multibyte character array.
Compatibility:
This function is compatible with the following targets:
Prototype:
#include <stdlib.h>
size_t wcstombs(char *s, const
   wchar_t *pwcs, size_t n);
Parameters:
Parameters for this facility are:
Remarks:
The wcstombs() function converts a character array containing wchar_t type characters to a character array containing multibyte characters. The wchar_t type is defined in stddef.h.
The Metrowerks C implementation of wcstombs() performs no translation; it copies the lower eight bits from each of a maximum of n wide characters from the array pointed to by pwcs to the array pointed to by s. The function terminates prematurely if a null character is reached.
Return:
wcstombs() returns the number of bytes copied from pwcs to s.
See Also:
"Locale specification," "mbstowcs"
[ 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