summaryrefslogtreecommitdiffstats
path: root/man3/mbtowc.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--man3/mbtowc.313
1 files changed, 6 insertions, 7 deletions
diff --git a/man3/mbtowc.3 b/man3/mbtowc.3
index 743e5a7..0e07144 100644
--- a/man3/mbtowc.3
+++ b/man3/mbtowc.3
@@ -9,7 +9,7 @@
.\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
.\" ISO/IEC 9899:1999
.\"
-.TH mbtowc 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH mbtowc 3 2023-10-31 "Linux man-pages 6.7"
.SH NAME
mbtowc \- convert a multibyte sequence to a wide character
.SH LIBRARY
@@ -18,7 +18,7 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.PP
+.P
.BI "int mbtowc(wchar_t *restrict " pwc ", const char " s "[restrict ." n "], \
size_t " n );
.fi
@@ -47,7 +47,7 @@ does not point to a null byte (\[aq]\e0\[aq]), it returns the number
of bytes that were consumed from
.IR s ,
otherwise it returns 0.
-.PP
+.P
If the
.I n
bytes starting at
@@ -61,7 +61,7 @@ This can happen even if
>=
.IR MB_CUR_MAX ,
if the multibyte string contains redundant shift sequences.
-.PP
+.P
A different case is when
.I s
is not NULL but
@@ -71,7 +71,7 @@ In this case, the
.BR mbtowc ()
function behaves as above, except that it does not
store the converted wide character in memory.
-.PP
+.P
A third case is when
.I s
is NULL.
@@ -102,7 +102,7 @@ or 0 if
.I s
points to a null byte,
or \-1 upon failure.
-.PP
+.P
If
.I s
is NULL, the
@@ -124,7 +124,6 @@ T{
.BR mbtowc ()
T} Thread safety MT-Unsafe race
.TE
-.sp 1
.SH VERSIONS
This function is not multithread safe.
The function