]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/mbsinit.3
time.1, _syscall.2, acct.2, getsockname.2, nanosleep.2, pciconfig_read.2, sched_get_p...
[thirdparty/man-pages.git] / man3 / mbsinit.3
index 0986b077304098660f7e2945283b65e6143b89de..04e3ce61d95cbfe02fc8e353069558317b5ebe5b 100644 (file)
@@ -24,7 +24,8 @@ mbsinit \- test for initial shift state
 .fi
 .SH DESCRIPTION
 Character conversion between the multibyte representation and the wide
-character representation uses conversion state, of type \fImbstate_t\fP.
+character representation uses conversion state, of type
+.IR mbstate_t .
 Conversion of a string uses a finite-state machine; when it is interrupted
 after the complete conversion of a number of characters, it may need to
 save a state for processing the remaining characters.
@@ -38,7 +39,9 @@ conversion functions, such as
 and the one used by wide
 character to multibyte conversion functions, such as
 .BR wcsrtombs (3),
-but they both fit in a \fImbstate_t\fP, and they both have the same
+but they both fit in a
+.IR mbstate_t ,
+and they both have the same
 representation for an initial state.
 .PP
 For 8-bit encodings, all states are equivalent to the initial state.
@@ -66,12 +69,17 @@ On Linux, the following works as well, but might generate compiler warnings:
 .PP
 The function
 .BR mbsinit ()
-tests whether \fI*ps\fP corresponds to an
+tests whether
+.I *ps
+corresponds to an
 initial state.
 .SH RETURN VALUE
 .BR mbsinit ()
-returns nonzero if \fI*ps\fP is an initial state, or if
-\fIps\fP is a NULL pointer.
+returns nonzero if
+.I *ps
+is an initial state, or if
+.I ps
+is a NULL pointer.
 Otherwise it returns 0.
 .SH CONFORMING TO
 C99.