@c ----------------------------------------------------------------------
@node wcstombs, locale
@heading @code{wcstombs}
@subheading Syntax

@example
#include <stdlib.h>

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

@subheading Description

Converts a wide character string to a multibyte string.  At most
@var{n} characters are stored.

@subheading Return Value

The number of characters stored.

@subheading Example

@example
int len = wcstombs(buf, wstring, sizeof(buf));
@end example

@c ----------------------------------------------------------------------
@node wctomb, locale
@heading @code{wctomb}
@subheading Syntax

@example
#include <stdlib.h>

int wctomb(char *s, wchar_t wchar);
@end example

@subheading Description

Convert a wide character to a multibyte character.  The string @var{s}
must be at least @code{MB_LEN_MAX} bytes long.

@subheading Return Value

The number of characters stored.

@subheading Example

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

