summaryrefslogtreecommitdiffstats
path: root/man3/wcrtomb.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/wcrtomb.3')
-rw-r--r--man3/wcrtomb.317
1 files changed, 8 insertions, 9 deletions
diff --git a/man3/wcrtomb.3 b/man3/wcrtomb.3
index 2732832..9957bd0 100644
--- a/man3/wcrtomb.3
+++ b/man3/wcrtomb.3
@@ -9,7 +9,7 @@
.\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
.\" ISO/IEC 9899:1999
.\"
-.TH wcrtomb 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH wcrtomb 3 2023-10-31 "Linux man-pages 6.7"
.SH NAME
wcrtomb \- convert a wide character to a multibyte sequence
.SH LIBRARY
@@ -18,7 +18,7 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.PP
+.P
.BI "size_t wcrtomb(char *restrict " s ", wchar_t " wc \
", mbstate_t *restrict " ps );
.fi
@@ -45,7 +45,7 @@ returns the length of said multibyte representation,
that is, the number of bytes
written at
.IR s .
-.PP
+.P
A different case is when
.I s
is not NULL,
@@ -69,7 +69,7 @@ it into the initial state),
and returns the length of the shift sequence plus
one, that is, the number of bytes written at
.IR s .
-.PP
+.P
A third case is when
.I s
is NULL.
@@ -77,17 +77,17 @@ In this case,
.I wc
is ignored,
and the function effectively returns
-.PP
+.P
.in +4n
.EX
wcrtomb(buf, L\[aq]\e0\[aq], ps)
.EE
.in
-.PP
+.P
where
.I buf
is an internal anonymous buffer.
-.PP
+.P
In all of the above cases, if
.I ps
is NULL, a static anonymous
@@ -124,7 +124,6 @@ T{
.BR wcrtomb ()
T} Thread safety MT-Unsafe race:wcrtomb/!ps
.TE
-.sp 1
.SH STANDARDS
C11, POSIX.1-2008.
.SH HISTORY
@@ -136,7 +135,7 @@ depends on the
.B LC_CTYPE
category of the
current locale.
-.PP
+.P
Passing NULL as
.I ps
is not multithread safe.