wctomb
int wctomb (char multibyteChar[], wchar_t wideCharCode);
Purpose
Determines the number of bytes needed to represent the multibyte character corresponding to the specified wide character code.
Parameters
Input | ||
Name | Type | Description |
wideCharCode | wchar_t | Contains the wide character code that is converted to its corresponding multibyte character. |
Output | ||
Name | Type | Description |
multibyteChar | char [] | Contains a pointer to the multibyte character corresponding to the specified wide character code. |
Return Value
Name | Type | Description |
numberOfBytes | int | Contains the number of bytes that are contained in the multibyte character corresponding to the specified wide character code. If multibyteChar is a null pointer and the multibyte character encodings have state-dependent encodings, the function returns a nonzero value; otherwise, if multibyteChar is a null pointer and the multibyte character encodings do not have state dependent encodings, the function returns zero. If wideCharCode does not correspond to a valid multibyte character, the function returns -1. |
Additional Information
Library: ANSI C Library
Include file: ansi_c.h
LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later