SYNOPSIS
#include <wchar.h>
size_t wcrtomb(char *s, wchar_t wc, mbstate_t *ps);
DESCRIPTION
If s is a null pointer,
the
wcrtomb(buf, L'\0', ps)
where buf is an internal buffer.
If s is not a null pointer, the
If the specified state pointer is null, the
The behavior of this function is affected by the LC_CTYPE category of the current locale.
PARAMETERS
- s
-
Is the buffer used to receive the converted character. This can be a null pointer if no conversion is desired.
- wc
-
Is the wide character to convert.
- ps
-
Is the conversion state. If this is null, an internal mbstate_t object is used.
RETURN VALUES
The
CONFORMANCE
ANSI/ISO 9899-1990/AM 1-1995
MULTITHREAD SAFETY LEVEL
MT-Safe, with exceptions.
This function is MT-Safe as long as no thread calls
PORTING ISSUES
None.
AVAILABILITY
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
mbrlen() ,mbrtowc() ,mbsinit() ,mbsrtowcs() ,setlocale() ,wcsrtombs()
MKS Toolkit 9.3 Documentation Build 6.