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


wcstombs

Syntax

#include <stdlib.h>

size_t wcstombs(char *s, const wchar_t *wcs, size_t n);

Description

Converts a wide character string to a multibyte string. At most n characters are stored.

Return Value

The number of characters stored.

Portability

ANSI, POSIX

Example

int len = wcstombs(buf, wstring, sizeof(buf));


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