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


wctomb

Translate a wchar_t type to a multibyte character.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <stdlib.h>
int wctomb(char *s, wchar_t wchar);
Parameters:

Parameters for this facility are:

s  
char *  
A multibyte string buffer  
wchar  
wchar_t  
A wide character to convert  

Remarks:

The wctomb() function converts a wchar_t type character to a multibyte character.

The Metrowerks C implementation of wctomb() performs no translation; it assigns the bottom eight bits of wchar to the character pointed to by s.

Return:

wctomb() returns 1 if s is not null and returns 0 otherwise.

See Also:

"Locale specification"

"mbtowc"


[ 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