.\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
.\" ISO/IEC 9899:1999
.\"
-.TH WCSTOMBS 3 2016-10-08 "GNU" "Linux Programmer's Manual"
+.TH WCSTOMBS 3 2019-03-06 "GNU" "Linux Programmer's Manual"
.SH NAME
wcstombs \- convert a wide-character string to a multibyte string
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "size_t wcstombs(char *" dest ", const wchar_t *" src ", size_t " n );
.fi
.SH DESCRIPTION
is returned, but the shift state at this point is lost.
.IP 3.
The wide-character string has been completely converted, including the
-terminating null wide character (L\(aq\\0\(aq).
+terminating null wide character (L\(aq\e0\(aq).
In this case, the conversion ends in the initial shift state.
The number of bytes written to
.IR dest ,
-excluding the terminating null byte (\(aq\\0\(aq), is returned.
+excluding the terminating null byte (\(aq\e0\(aq), is returned.
.PP
The programmer must ensure that there is room for at least
.I n
.BR wcstombs ()
T} Thread safety MT-Safe
.TE
-
+.sp 1
.SH CONFORMING TO
POSIX.1-2001, POSIX.1-2008, C99.
.SH NOTES