Admin Production ni-theme
Current Publication

wcstombs

LabWindows/CVI

wcstombs

size_t wcstombs (char multibyteString[], const wchar_t *wideCharCodes, size_t byteLimit);

Purpose

Converts a sequence of wide character codes into a sequence of the corresponding multibyte characters.

Parameters

Input
Name Type Description
wideCharCodes const wchar_t * Contains a sequence of wide character codes that are converted into their corresponding multibyte characters.
byteLimit size_t Specifies the maximum number of bytes of the multibyte character array to be modified.
Output
Name Type Description
multibyteString char [] Contains a sequence of multibyte characters that are converted from the specified wide character codes.

Return Value

Name Type Description
ElementsModified size_t Contains the number of array elements modified, not including a terminating zero code, if any. If an invalid multibyte character is encountered, the function returns -1.

Additional Information

Library: ANSI C Library

Include file: ansi_c.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later