summaryrefslogtreecommitdiffstats
path: root/man3/wcsnrtombs.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/wcsnrtombs.3')
-rw-r--r--man3/wcsnrtombs.319
1 files changed, 9 insertions, 10 deletions
diff --git a/man3/wcsnrtombs.3 b/man3/wcsnrtombs.3
index 21ad0fa..787d56f 100644
--- a/man3/wcsnrtombs.3
+++ b/man3/wcsnrtombs.3
@@ -8,7 +8,7 @@
.\" Dinkumware C library reference http://www.dinkumware.com/
.\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
.\"
-.TH wcsnrtombs 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH wcsnrtombs 3 2023-10-31 "Linux man-pages 6.7"
.SH NAME
wcsnrtombs \- convert a wide-character string to a multibyte string
.SH LIBRARY
@@ -17,18 +17,18 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.PP
+.P
.BI "size_t wcsnrtombs(char " dest "[restrict ." len "], \
const wchar_t **restrict " src ,
.BI " size_t " nwc ", size_t " len ", \
mbstate_t *restrict " ps );
.fi
-.PP
+.P
.RS -4
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.RE
-.PP
+.P
.BR wcsnrtombs ():
.nf
Since glibc 2.10:
@@ -47,7 +47,7 @@ starting at
.IR *src ,
is limited to
.IR nwc .
-.PP
+.P
If
.I dest
is not NULL,
@@ -115,7 +115,7 @@ of bytes written to
.IR dest ,
excluding the terminating null byte (\[aq]\e0\[aq]), is
returned.
-.PP
+.P
If
.I dest
is NULL,
@@ -124,7 +124,7 @@ is ignored,
and the conversion proceeds as above,
except that the converted bytes are not written out to memory, and that
no destination length limit exists.
-.PP
+.P
In both of the above cases,
if
.I ps
@@ -132,7 +132,7 @@ is NULL, a static anonymous
state known only to the
.BR wcsnrtombs ()
function is used instead.
-.PP
+.P
The programmer must ensure that there is room for at least
.I len
bytes
@@ -170,7 +170,6 @@ T} Thread safety T{
MT-Unsafe race:wcsnrtombs/!ps
T}
.TE
-.sp 1
.SH STANDARDS
POSIX.1-2008.
.SH NOTES
@@ -180,7 +179,7 @@ depends on the
.B LC_CTYPE
category of the
current locale.
-.PP
+.P
Passing NULL as
.I ps
is not multithread safe.