Go to the first, previous, next, last section, table of contents.


wctomb

Syntax

#include <stdlib.h>

int wctomb(char *s, wchar_t wchar);

Description

Convert a wide character to a multibyte character. The string s must be at least MB_LEN_MAX bytes long.

Return Value

The number of characters stored.

Portability

ANSI, POSIX

Example

char s[MB_LEN_MAX];
int mlen = wctomb(s, wc);


Go to the first, previous, next, last section, table of contents.